Shutdown/Restart/Logoff Your Computer Using Notepad

Notepad is text editor present in Microsoft operating system for text editing.  Notepad files are usually saved with .txt extension but we can change extension according to our use. Notepad can be used in various type of programming like to generate batch file or vbs script. Here are the tips how to shutdown, Restart or 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


Comments

Popular Posts