See the notice at the end if you are using an older operating system than Windows XP.
Remove these ads by
Signing UpStep 1Create a batch file
For shutdown:
c:\windows\system32\shutdown -s -f -t 00 (or do ...shutdown -p -f)
For restart:
c:\windows\system32\shutdown -r -t 00
For hibernate:
c:\windows\system32\shutdown /h
Save it anywhere you like as shutdown (or whichever accordingly) .bat so it would be "shutdown.bat" for example.
DO NOT save as a -.bat.txt, you are then merely saving text.
| « Previous Step | Download PDFView All Steps | Next Step » |













































which windows should recognise on virtually all versions of windows.
Hope this helps :)
d:\windows\system32\shutdown...
Next time, just try scheduling the task to run shutdown.exe. And the /h (hibernate) switch for shutdown.exe is only compatible with Vista, and maybe Windows 7. Unsure about the latter though.
A batch file is a list of programs located within the path. A batch filewith a single command is useless because you can simply refer to thecommand directly. Anything you can do with that batch file, you can do without.
(interested)
L
L
L
# To restart daily at say 4 AM:
0 4 * * * reboot # (or shutdown -r)
# To restart the first day of the month at 4 AM:
0 4 1 * * reboot
# To restart to shutdown at 12:01 AM on New Year's Day:
1 0 1 1 * shutdown
# To restart Monday at 6 AM to be ready for the upcoming workweek:
0 6 * * 1 reboot
# Columns are:
# 1 minutes
# 2 hours
# 3 day of month
# 4 month
# 5 day of week
# for more information `man 5 crontab'
Check this script for hibernating or suspending:
http://www.linux.com/news/hardware/laptops/8253-how-to-suspend-and-hibernate-a-laptop-under-linux