Computer Hope
Microsoft => Microsoft DOS => Topic started by: Brian Smith on August 08, 2004, 06:34:50 PM
-
How can I make my computer shut down at a specific time every day using a batch file?
-
@if %time% == 12.00.00 call %windir%/system32/shutdown.exe -s
i'm not shure..
u need to keep the bat file open, i it should be helpful to know how to run it as slient...
-
You can use Task Scheduler and have it run the Shutdown shortcut from the desktop, rather than use a batch file.
Win9x: rundll32.exe user.exe,exitwindows
WinXP: shutdown -s -f
-
or the power options in the control panel...
-
How do you access the power options in the control panel from a batch file? :)