Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Microsoft DOS batch command

Quick links

About batch
Availability
Syntax
Examples

About batch

The batch command is a recovery console command that executes a series of commands within a file.

If you are looking for additional information about batch files we suggest you look at our batch file page.

Availability

The batch command is a recovery console command that is available in the below Microsoft operating systems.

Windows 2000
Windows XP

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:

Resolved

Were you able to locate the answer to your questions?
 

Syntax

Executes commands specified in a text file.

BATCH Inputfile [Outputfile]

Inputfile Specifies the text file that contains 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. 

Examples

batch myfile.txt

In the above example, the batch command would run through each of the commands in the myfile.txt file and display the output to the screen.

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope