answersLogoWhite

0

1. Open Notepad

2. Type the following:

shutdown -s

3. Save the file as <<filename>>.bat

Ex: shut.bat

4. Run the batch file to shutdown the PC.

In case you want to restart, type "shutdown -r"

Thanks

Kiran

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Is there any batch file editor to create batch file without learning syntax?

You can't download a program that makes a batch file to do what you want to do. You will need to legally learn about hacking, and then write the file yourself.


How does one write a batch file?

There are a number of steps one must take to write a batch file, which is an executable file that can automate frequently performed tasks on a computer. Batch files can be written in Notepad, saved, and then once the file extension is changed to .bat, can be double clicked to execute.


How to create a batch file and impliment it?

To create a batch file open notepad, textedit, or whatever editor you wish to use. Once open write your program, check for errors, and "make simple text." Save this program as whateveryouwant.bat. Open the file and the batch file will execute.


What is the extension of batch file?

the extension of a batch file is ".bat"


Can a file with a weird extension but with batch file code be read using another batch file?

Nope, the format of a file is a vital part of a successful batch file. Even if a file with an unknown file format contains working batch file code in it, a batch file will still not be able to read it because of its foreign file extension. If you want the batch file to be able to read the foreign file, then you can set it to rename the mutated file to .bat format and then read it for it to work. Example: @Echo off REN File.Foreign File.bat CALL File.bat exit


What is a batch file?

A batch file is the text file that contains a series of commands that MS-DOS carries out. A batch file is created by COPY CON command after specifying a file name by using extension as .BAT in DOS mode.


How do you extract code from batch file?

You can just open the batch file with notepad and look at the code


Which version of windows introduced windows file protection?

Windows2000 / prevents critical system files from being deleted or overwritten


What does a bat document mean?

"Bat" is short for "batch" which is a type of scripting language for computers. They're basically just text files which you can write to do simple tasks for you. To read one (on Windows) right-click the file, then choose "open with" and select Notepad. Further reading: http://en.wikipedia.org/wiki/.bat A batch file is a text file that contains a sequence of commands for a computer operating system. It's called a batch file because it batches (bundles or packages) into a single file a set of commands that would otherwise have to be presented to the system interactively from a keyboard one at a time. A batch file is usually created for command sequences for which a user has a repeated need. Commonly needed batch files are often delivered as part of an operating system. You initiate the sequence of commands in the batch file by simply entering the name of the batch file on a command line.


What does a document mean?

"Bat" is short for "batch" which is a type of scripting language for computers. They're basically just text files which you can write to do simple tasks for you. To read one (on Windows) right-click the file, then choose "open with" and select Notepad. Further reading: http://en.wikipedia.org/wiki/.bat A batch file is a text file that contains a sequence of commands for a computer operating system. It's called a batch file because it batches (bundles or packages) into a single file a set of commands that would otherwise have to be presented to the system interactively from a keyboard one at a time. A batch file is usually created for command sequences for which a user has a repeated need. Commonly needed batch files are often delivered as part of an operating system. You initiate the sequence of commands in the batch file by simply entering the name of the batch file on a command line.


A file with a bat file extension is called an what?

A batch file.


What is Batch File Maker?

you can use notepad for creating a batch file. just when you save the file that you made, add .bat as a file extension. like this: "sample.bat".