Microsoft > Microsoft DOS

Shut down

(1/1)

Brian Smith:
How can I make my computer shut down at a specific time every day using a batch file?

Droppen:
@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...

MalikTous:
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

merlin_2:
or the power options in the control panel...

johnwill:
How do you access the power options in the control panel from a batch file? :)

Navigation

[0] Message Index

Go to full version