【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

1 - Create or open notepad.

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

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.

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

Sample - Command

4 - Execute batch file.

To execute you just need to double click on the batch file you have created example.bat.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0 0 votes
Article Rating

Start typing and press Enter to search

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