How to turn off the computer with notepad

Written by chyrene pendleton
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to turn off the computer with notepad
Create a batch file with Notepad to shut down your computer. (shutdown the computer image by Ludovic LAN from

When you create a batch file in Microsoft Windows, you can use this file to run commands. You do not need to know computer programming. All you need to know are a few Microsoft Disk Operating System (MS-DOS) commands. Think of your batch file as a shortcut for Windows. You can use your batch file to run one command or commands for several programs. For example, if you want to shut your computer off, you can create a batch file in Windows, using Notepad.

Skill level:


  1. 1

    Click "Start" and type "notepad" in the search field. Press "Enter."

    This launches the text editor application called Notepad, which you can use to type in commands for your computer. You can use any text editor.

  2. 2

    Type the following command, including the quotation marks: SHUTDOWN -S -F -T 30 -C "Shutting down in 30 seconds."

  3. 3

    Save your Notepad document as "My Backup.bat." Choose "All Files" if you use a Windows version that has a "Save as Type" option; otherwise, Windows saves your file with a ".txt" text extension and it will not run.

  4. 4

    Close Notepad.

  5. 5

    Click "Start" and type "mybackup.bat" in the search field. Press "Enter." The batch file you created begins to execute the command to shut down your computer system in 30 seconds. Click "Start" and "Run" and type "SHUTDOWN -A" quickly if you change your mind about shutting down your computer. This aborts the shutdown command.

Tips and warnings

  • You can save your Notepad document using any file name as long as you use a ".bat" extension after the file name.
  • Change the number from 30 to 60 if you want your computer to shut down in 60 seconds, or change it to any number you desire. Change the message to match the number of minutes you set.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.