What is the Batch Command?:
Batch Command Syntax:
batch inputfile [outputfile]
inputfile = This is the file containing the list of Recovery Console commands you want to run.
Note: The batch command can not be used within the inputfile to run additional commands.
outputfile = This is the file that will store the information resulting from running the commands from the inputfile.
Batch Command Examples:
batch runme.txt postrun.txt
In the above example, the batch command runs the individual Recovery Console commands that are included in the runme.txt file.
The results of the commands that are run are then stored in the postrun.txt file. The postrun.txt file does not need to preexist - the batch command will create the file for you.
In this example, the batch command will run each Recovery Console command listed in the runthesecommands.txt file.
The results of the commands will be listed on the screen since no file is given to write the output to.
Batch Command Availability:
The batch command is only available from within the Recovery Console in Windows 2000 and Windows XP.
Batch Related Commands:
The batch command is often used with many other Recovery Console commands.