in reply to Dir Create

The first thing that comes to mind is something rather simple: do you have the needed rights to create directories and folders on the machine where your script is not working?
-- Doc Kinne, KQR
American Association of Variable Star Observers