Batch Files and Commands
 

Objective:

 


What's a batch file?   [ Top ]


  How does a batch file work?   [ Top ]
What commands can you used in a batch file?    [ Top ]
What are the special characters commonly used in a batch file?    [ Top ]
 
Special characters
@
:
%
%%
Name: batch display suppression 
operator 
 
batch file label operator batch replaceable 
parameter
batch replaceable 
parameter 
 
Syntax:
@<command> 
where command is any MS-DOS command 
 
:<label> 
where label is a string up to 8 characters long
%n 
where n is a single digit 1 through 9
%%n 
where n is a single digit 1 through 9
Example:
@echo off 
 
:option1 %1, %2, %3 etc. %%1, %%2 etc.
Remarks -- -- -- used with FOR command only
 
How can you create a batch file?    [ Top ]

Back to doscmd.html