How to shutdown computer using Notepad: 9 steps

Table of contents:

How to shutdown computer using Notepad: 9 steps
How to shutdown computer using Notepad: 9 steps
Anonim

Notepad is a free Windows text editor that you can use to edit program codes. You can enter some simple Windows commands in Notepad to create a file that will shutdown your computer. Create such a file to quickly shut down your computer or just make fun of someone.

Steps

Shut Down a Computer Using Notepad Step 1
Shut Down a Computer Using Notepad Step 1

Step 1. Open Notepad

This free text editing program is included with all versions of Windows. In Notepad, you can write the simplest code that turns off your computer.

To open Notepad, click Start> Programs> Accessories> Notepad. Alternatively, you can click Start, type notepad, and press ↵ Enter

Shut Down a Computer Using Notepad Step 2
Shut Down a Computer Using Notepad Step 2

Step 2. Enter shutdown.exe -s on the first line

This is a command to shutdown the computer.

Shut Down a Computer Using Notepad Step 3
Shut Down a Computer Using Notepad Step 3

Step 3. Add a timer using the -t option

By default, the computer will shutdown after 30 seconds. To change this time, add the -t parameter, and then enter the number of seconds.

  • For example, to shutdown the computer after 45 seconds, enter shutdown.exe -s -t 45.
  • To shut down the computer immediately, enter shutdown.exe -s -t 00.
Shut Down a Computer Using Notepad Step 4
Shut Down a Computer Using Notepad Step 4

Step 4. Add your message

To display a message on the computer before the computer shuts down, use the -c option. For our example, enter shutdown.exe -s -t 45 -c "message text". The text must be enclosed in quotation marks.

For example, you can specify in the message how long the computer will turn off; to do this, enter shutdown.exe -s -t 45 -c "The computer will shutdown in 45 seconds."

Shut Down a Computer Using Notepad Step 5
Shut Down a Computer Using Notepad Step 5

Step 5. Click File> Save As

The file must be saved in the BAT format (batch file), the launch of which will turn off the computer.

Shut Down a Computer Using Notepad Step 6
Shut Down a Computer Using Notepad Step 6

Step 6. Open the Save as type menu and select All Files (*

*) ". Now you can change the file type.

Shut Down a Computer Using Notepad Step 7
Shut Down a Computer Using Notepad Step 7

Step 7. Remove the.txt extension at the end of the file name

Enter.bat instead.

If the extension (in the form of three letters) does not appear, look online for information on how to do it

Shut Down a Computer Using Notepad Step 8
Shut Down a Computer Using Notepad Step 8

Step 8. Save the file

Bat file will be created; the icon for this file will be different from the icon for the text file.

Shut Down a Computer Using Notepad Step 9
Shut Down a Computer Using Notepad Step 9

Step 9. Run the created file to turn off the computer

The shutdown process will take place in accordance with the rules that you have set.

Popular by topic