Batch command
Updated: 11/12/2023 by Computer Hope
The batch command is part of the Recovery Console. It is used to execute several commands within a file.
Tip
If you are looking for help with batch files, we suggest you look at our batch file page.
Availability
The batch command is available in the following Microsoft operating systems.
Batch syntax
Executes commands specified in a text file.
BATCH Inputfile [Outputfile]
Inputfile | Specifies the text file containing the list of commands to be executed. |
Outputfile | If specified, contains the output of the specified commands. If not specified, the output is displayed on the screen. |
Batch cannot be one of the commands included in the Inputfile.
Batch examples
batch myfile.txt
The above batch command example runs through each of the commands in the myfile.txt file and display the output to the screen.