Here’s how to do the shutdown functions via a batch file:
shutdown -r
— restartsshutdown -s
— shutsdownshutdown -l
— logoffshutdown -t xx
— wherexx
is number of seconds to wait till shutdown/restart/logoffshutdown -i
— gives you a dialog box to fill in what function you want to useshutdown -a
— aborts the previous shutdown command….very handy!shutdown -h
— hibernate. Easy mistake – it’s not for help
Additional options:
-f
— force the selected action
more information: http://stackoverflow.com/questions/162304/how-do-i-shutdown-restart-logoff-windows-via-a-bat-file