It would help if you posted your script, but I suspect the problem lies either with relative pathing, or more likely, the forward/backslash issue. Can you post the code fragment (preferrably minimized to the condition that breaks, and don't forget the <code>/</code> tags)?