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
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.
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.
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.
the extension of a batch file is ".bat"
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
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.
You can just open the batch file with notepad and look at the code
Windows2000 / prevents critical system files from being deleted or overwritten
"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.
"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 batch file.
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".