You should not have changed it in the first place as it will check for the presence of JT.EXE if provided the path to is as optional parameter as you already do. Alternatively, add the additional path to the array if you're sure that JT.EXE will always be in only that one location. You should also not remove the .JOB sanity check so that the UDF can correctly delete potentially existing tasks.

Put a DEBUG ON into your code to see where exactly it fails and what the command line command is that is being created.

And please post code in between [CODE] tags.

[ 14. October 2003, 16:29: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.