jp1203
Thread Starter
- Joined
- Jul 20, 2005
- Messages
- 3,427
I have absolutely no idea where to put this, so I just picked a place. If anyone thinks there's a better spot for it, have it moved there please 
My intentions: to make a DOS batch script that will shut down four machines, then to set it as a scheduled task running at, say, 1 AM
The Problem:
I type something in DOS:
shutdown -s -m \\computername -c "This machine will shut down in two minutes To cancel click the abort shutdown icon on your desktop" -t 120 -f
It works, the remote machine displays a warning and a countdown timer. I have an icon on their desktop that is a batch script with contents:
shutdown -a
to abort the shutdown if someone is on the machine at 1 AM.
If I copy the same script (the shut down one) into notepad save and run the batch file, it goes into this endless loop and does nothing. Anyone know why?
I've attached a screenshot of the running batch script in its endless loop"
My intentions: to make a DOS batch script that will shut down four machines, then to set it as a scheduled task running at, say, 1 AM
The Problem:
I type something in DOS:
shutdown -s -m \\computername -c "This machine will shut down in two minutes To cancel click the abort shutdown icon on your desktop" -t 120 -f
It works, the remote machine displays a warning and a countdown timer. I have an icon on their desktop that is a batch script with contents:
shutdown -a
to abort the shutdown if someone is on the machine at 1 AM.
If I copy the same script (the shut down one) into notepad save and run the batch file, it goes into this endless loop and does nothing. Anyone know why?
I've attached a screenshot of the running batch script in its endless loop"
Attachments
-
70.9 KB Views: 1,085