Put DEBUG ON into the first line of your script and step through it. Use
code:
? 'Error '+@ERROR+' - '+@SERROR

to check for errors and I highly recommend to use any of the MapDrive() UDFs for drive mappings. See the UDF Forum.
_________________________
There are two types of vessels, submarines and targets.