Shutdown Restart Logoff Your Computer Using Notepad
Shutdown Restart Logoff Your Computer Using Notepad

1. Click the Start button, type Notepad in the Search box of the Start menu, and choose Notepad from the menu to open the Notepad.
2. Copy the following code to the Notepad:
Copy the following code for Shutdown your computer:
@echo off
shutdown -s -t 30 -c "shutting down within 30 sec"
Copy the following code for Restart your computer:
@echo off
shutdown -r -t 30 -c "Restart within 30 sec"
Copy the following code for Logoff your computer:
@echo off
shutdown -l -t 30 -c "Logoff within 30 sec"
3. Go to file and save as file with .bat extension and Save as type box to All Files and then click save.

4. Double click on that .bat file when you want to Shutdown, Restart or Logoff your computer.
Also See: Some cool Notepad tricks