Computer Hope

Microsoft => Microsoft DOS => Topic started by: Brian Smith on August 08, 2004, 06:34:50 PM

Title: Shut down
Post 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?
Title: Re: Shut down
Post by: Droppen on August 09, 2004, 02:49:19 AM
@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...
Title: Re: Shut down
Post by: MalikTous on August 09, 2004, 11:47:18 AM
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
Title: Re: Shut down
Post by: merlin_2 on August 09, 2004, 02:31:00 PM
or the power options in the control panel...
Title: Re: Shut down
Post by: johnwill on August 09, 2004, 04:46:34 PM
How do you access the power options in the control panel from a batch file? :)