help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Batch Commands
                               Batch Commands
 
A batch file or batch program is an unformatted text file that contains one
or more MS-DOS commands and is assigned a .BAT extension. When you type the
name of the batch program at the command prompt, the commands are carried
out as a group.
 
Any MS-DOS command you use at the command prompt can also be put in a batch
program. In addition, the following MS-DOS commands are specially designed
for batch programs:
 
<Call>                    <If>
<Choice>                  <Pause>
<Echo>                    <Rem>
<For>                     <Shift>
<Goto>
 
You can use the COMMAND /Y command to step through a batch program line by
line, and can selectively bypass or carry out individual commands. This is
useful for tracking down problems in batch files. For more information, see
<COMMAND>.
 
                                      ♦