How to Shut Down a Computer Using Notepad

Open Notepad., Type .shutdown.exe -s on the first line., Add a timer by using the .-t flag., Add a message to be displayed., Click "File" and select "Save As"., Click the "Save as type" drop-down menu and select "All Files (*.*)"., Delete the ..txt...

9 Steps 2 min read Medium

Step-by-Step Guide

  1. Step 1: Open Notepad.

    This is the free text editing program that comes with every version of Windows.

    You can use it to create a command that, when run, will shut down Windows for you.

    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. Step 2: Type .shutdown.exe -s on the first line.

    This is the command to shut down the computer. , 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. , If you want, you can add a personalized message to the shut down notice by using the
    -c flag.

    Using the above example, type shutdown.exe
    -s
    -t 45
    -c "comment".

    The comment must be in quotes.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". , You will need to save the file as a batch file, which Windows can execute to run the shutdown command. , This will allow you to change the file type. , Replace it with .bat.

    If you don't see the three letter file extensions, click here. , A new copy will be created with the .bat extension, and it will have a different icon than a standard text file. , The shutdown will occur according to the rules you created.

    Make sure you've saved anything you need to before running the shut down program.
  3. Step 3: Add a timer by using the .-t flag.

  4. Step 4: Add a message to be displayed.

  5. Step 5: Click "File" and select "Save As".

  6. Step 6: Click the "Save as type" drop-down menu and select "All Files (*.*)".

  7. Step 7: Delete the ..txt from the end of the file name.

  8. Step 8: Save the file.

  9. Step 9: Run the newly-created file to run your shutdown process.

Detailed Guide

This is the free text editing program that comes with every version of Windows.

You can use it to create a command that, when run, will shut down Windows for you.

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.

This is the command to shut down the computer. , 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. , If you want, you can add a personalized message to the shut down notice by using the
-c flag.

Using the above example, type shutdown.exe
-s
-t 45
-c "comment".

The comment must be in quotes.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". , You will need to save the file as a batch file, which Windows can execute to run the shutdown command. , This will allow you to change the file type. , Replace it with .bat.

If you don't see the three letter file extensions, click here. , A new copy will be created with the .bat extension, and it will have a different icon than a standard text file. , The shutdown will occur according to the rules you created.

Make sure you've saved anything you need to before running the shut down program.

About the Author

B

Brian Martin

Committed to making home improvement accessible and understandable for everyone.

29 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: