Discussion Locked

Batch File stalls

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a simple batch file that maps a few drives for my users at logon, the file worked fine in NT, but in a win2k or XP PC the batch file stalls at logon and must be manually closed, and on XP machines the user cannot log off with out gettin a endtask box to again manually close the batch file. Any ideas as to why this is happening

10 replies

by gperrie

what happens when you start the script manually? Does it ask for any input?

I had a problem once where NT & 2000 machines used a different switch for xcopy meaning my old nt script (which I think had /y) wouldn't finish running (it needed a /yes). Putting in a simple check for the OS then running different commands fixed it.

Could be you have the same sort of problem with one of the commands used changing slightly for OS versions.

Gavin

by pan 13 x

if the problem is with the script and it runs everytime your boot up , add the commands to remove every drive before you readd it. this will remove the shares and will not cause a confict with drive in already in use and this is why your script is hanging up!
Test the theory , remove all the shares from one of your systems and then restart, with no shares there is should reboot and run the command just fine.

This discussion is closed to new replies.