• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do you automate "shut down?"

crantang

Senior member
In Windows98, there's a task scheduler, but I don't know how to use it to shut down my computer at a set time. Is there some sort of utility I can download to automate this? Thanks in advance!

 
Figure out what the command line shutdown command is, write a batch file, and setup the system to run that batchfile at a certain time. But running your system 24/7 (while helping Team Anandtech in one of its wonderful Distributed Computing projects) would be a much easier solution. And some people think leaving your system on is better for the hardware 🙂
 
Create a text file called shutdown.vbs

Put the following as the contents of the file:

set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^{ESC}us{ENTER}"


Save the file and place it on the desktop or in the Quicklaunch or whatever, and then call it to run from Task Scheduler. It should shutdown Win when you double click it, or when it is run automatically by the scheduler.
 


<< Figure out what the command line shutdown command is, write a batch file, and setup the system to run that batchfile at a certain time. But running your system 24/7 (while helping Team Anandtech in one of its wonderful Distributed Computing projects) would be a much easier solution. And some people think leaving your system on is better for the hardware 🙂 >>


surprisingly, or rather not surprisingly, there is no simple command for shutting down windows via the cli and/or a batch file.

rolleye.gif
 


<<

<< Figure out what the command line shutdown command is, write a batch file, and setup the system to run that batchfile at a certain time. But running your system 24/7 (while helping Team Anandtech in one of its wonderful Distributed Computing projects) would be a much easier solution. And some people think leaving your system on is better for the hardware 🙂 >>


surprisingly, or rather not surprisingly, there is no simple command for shutting down windows via the cli and/or a batch file.

rolleye.gif
>>



There was a way to do it via command line without vbs in win9x. I remember loading a batch file into startup at work one time...
 
There is a command line to do it involving RUNDLL32.EXE.

The problem is that I can not remember what the whole command was.
 
Yep...that's it.

The problem is that the RUNDLL32.EXE command only works with Win9x and not Win2K/WinXP.

I see that they offer something to download for WinXP, but you can also use a script (like my one above) to shutdown Win2K/WinXP natively.
 
Yeah, I downloaded the file (very tiny), and copied it to my other HD/partition, and made a shortcut with the extensions suggested. It works just fine, without creating any vbs file. But, either way...
 
Back
Top