Batch file not executing properly
Posted on 2007-07-28
I am using a batch file to restart one of my W2K3 servers using task scheduler.
One one server, it works fine. I tried to use the same exact batch file to reboot another server, but when the batch file runs, instead of rebooting, a command prompt window opens and the command just runs over and over again until the command prompt is closed. If I type the command in at the command prompt instead of running the batch file, it works just fine.
Both the servers are W2K3 machines with SP1 installed.
The batch file is a single line: shutdown /r /t 120