【Batch File】 Create Batch File To Shutdown PC
>
>
>
【Batch File】 Create Batch File To Shutdown PC

Batch File - How to Create Batch File

Batch File - How to Create Batch File

In this post will show you How to turn off, log off, restart your windows computer by using windows command, and script it into batch file and allow you to execute it, step to create batch file for windows.

Table of - Content

No.
Title
1
Create or open notepad.
2
Save As bat format
3
Type in windows command into the batch file
4
Execute batch file.

1 - Create or open notepad.

Create or open a notepad, by using Windows icon+R key and type in “notepad” and click OK button.
<- Screenshot

2 - Save As bat format.

After you have open the notepad go to File > Save As.., enter you File name example.bat in bat file format and click Save.
<- Screenshot

3 - Type in windows command into the batch file.

After you have save as .bat file format, key in the shutdows windows command(you may copy from below and paste it into the batch file), after you have key in just save it as normal for example press Ctrl+S.

  • Parameter -s is for shutdown
  • Parameter -f is to force the command
  • Parameter -t is for Timer in seconds
<- Screenshot

Sample - Command

No.
Title
Description
1
Shutdown -s
Shutdown PC
2
Shutdown -r
Restart PC
3
Shutdown -l
Log Off PC
4
Shutdown -a
Abort a system shutdown

4 - Execute batch file.

To execute you just need to double click on the batch file you have created example.bat.
<- Screenshot

Other Post

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Download Premium WordPress Themes Free
Download WordPress Themes Free
Download Nulled WordPress Themes
Free Download WordPress Themes
free download udemy course
download lenevo firmware
Free Download WordPress Themes
online free course
0 0 votes
Article Rating

Start typing and press Enter to search

Shopping Cart
0
Would love your thoughts, please comment.x
()
x