We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
| Hack: |
|
Automating Shutdown
|
| Subject: |
|
OS: XP Pro Update |
| Date: |
|
2005-09-12 20:29:44 |
| From: |
|
Overlord
|
Response to: OS: XP Pro Update
|
|
Typing "shutdown" will run either Shutdown.bat, Shutdown.exe, or Shutdown.com. Since you named the batch file shutdown.bat, the command "shutdown" (without an extension) in the batch file makes it run the batch file over and over, as in; hey, run shutdown.bat. If you name the batch file anything else such as "KillPC.bat you will have no problems with Winders getting confused over which file to run. |