How To Shutdown A Computer Using Notepad

Image titled Shut Down a Computer Using Notepad Step 4
  1. Open Notepad. This is a free text editor that comes with all versions of Windows. You can use it to create a command that shuts down Windows at run time.
    • You can find Notepad by clicking the Start menu and selecting “Programs” → “Accessories” → “Notepad”. You can also click the Start menu, type notepad, and press ↵ Enter.
  2. Type .shutdown.exe -s on the first line. This is the command to shut down the computer.
  3. Add a timer by using the .-t flag. By default, the shutdown process will be delayed by 30 seconds. You can change this by using the -t gflag with the number of seconds you want to delay.
    • For example, to create a shutdown command that waits 45 seconds, type shutdown.exe -s -t 45.
    • To create a shutdown command that shuts the computer down immediately, type shutdown.exe -s -t 00.
  4. Add a message to be displayed. If you want, you can add a personalized message to the shutdown notice by using the -c flag. Using the above example, type shutdown.exe -s -t 45 -c “comment”. The comment must be in quotes.[1]
    • For example, you can let the user know how long until the shutdown begins by typing shutdown.exe -s -t 45 -c “Computer will shut down in 45 seconds”.
  5. Click “File” and select “Save As”. You will need to save the file as a batch file, which Windows can execute to run the shutdown command.
  6. Click the “Save as type” drop-down menu and select “All Files (*.*)”. This will allow you to change the file type.
  7. Delete the ..txt from the end of the file name. Replace it with .bat.
    • If you don’t see the 3-character file extension, click here.
  8. Save the file.  The new copy will be created with a .bat extension that has a different icon than the standard text file.
  9. Run the newly created file to run the shutdown process. Shutdown occurs according to the rules you created. Before running the shutdown utility, make sure that everything you need is saved.


Leave a Comment

Your email address will not be published. Required fields are marked *