advertisement

Hack:   Automating Shutdown
Subject:   OS: XP Pro Update
Date:   2005-04-23 06:51:10
From:   JGTOReilly
Response to: Sounds Good, but didn't work properly.

I should have investigated this Hack a little more thoroughly, before my last post. The BAT file line should read "shutdown.exe -s" (with no quotes), for the hack to run properly in an XP Pro environment. Everything else is as the original author states. Follow his directions and use “shutdown.exe -s" (with no quotes) in place of his suggestion for the BAT file line and you should have a BAT file that you can have your Task Scheduler run it at your specified time. Hope this hack helps more. I used this Hack to shutdown my computer at a specific time and it worked flawlessly in my XP Pro environment. I didn’t test it in any other OS’s. Be sure to turn off the scheduled task when you don’t what it to function.
Slick no frills easy logical hack!
Your Welcome
Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • OS: XP Pro Update
    2005-05-12 08:48:29  cedricktattoo [Reply | View]

    Very interesting. I use XP Pro, too, and this hack works perfectly as I originally wrote it for my XP system. It's even worked on other XP Pro systems used by a couple of friends. However, if substituting "shutdown.exe -s" still allows the hack to work for you and others, cool! The actual DOS command is "shutdown" and not "shutdown.exe," so it would be interesting to investigate why "shutdown.exe" worked on your system but "shutdown" did not. Has anyone else ever had this problem, I wonder?
    • OS: XP Pro Update
      2005-09-12 20:29:44  Overlord [Reply | View]

      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.
    • OS: XP Pro Update
      2005-05-24 20:26:47  kewlbreeze [Reply | View]

      I am working on it now will let you know what
      happens

Showing messages 1 through 3 of 3.