@echo off
shutdown.exe /s /t 00
Step 2) Save the file as shutdown.bat
Note# The extension must be .bat
Note# The extension must be .bat
Step 3) Double Click the file and see the Magic.
To restart the computer copy the code below and follow the same procedures.
@echo off
shutdown.exe /r /t 00
To hibernate the computer copy the code below and follow the same procedures.
@echo off
shutdown.exe /h
For Windows XP
To shut down your computer copy the code below and follow the same procedures.
@echo off
shutdown.exe -s -t 00
To restart the computer copy the code below and follow the same procedures.
@echo off
shutdown.exe -r -t 00