Aer you calling the script from a batch file perhaps? The script itself is OK, but the batch that calls it has a "goto" or something that ain't quite right. Suggest posting the batch and the script itself (providing there's nothing too "sensitive" naturally)

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd