1. Home
  2. Computing & Technology
  3. PC Support

Batch

By Tim Fisher, About.com

What is the Batch Command?:

The batch command is a Recovery Console command used to run a number of other Recovery Console commands automatically.

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.

batch runthesecommands.txt

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.

Explore PC Support
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PC Support
  4. Glossary / Terms
  5. B
  6. Batch - Batch Command Details - Recovery Console Command>

©2009 About.com, a part of The New York Times Company.

All rights reserved.