Calls one batch program from another without causing the parent batch program to stop.
call [drive:][path] filename [batch-parameters]
Specifies the location and name of the batch program you want to call. Filename must have a .BAT or .CMD extension.
Specifies any command-line information required by the batch program.
Batch-parameters can contain any information that you can pass to a batch program, including switches, filenames, the replaceable parameters %1 through %9, and variables such as %baud%.
Do not use pipes and redirection symbols with the call command.
You can create a batch program that calls itself; however, you must provide an exit condition. Otherwise, the parent and child batch programs can loop endlessly.
To run the CHECKNEW.BAT program from another batch program, include the following command in the parent batch program:
Suppose the parent batch program accepts two replaceable parameters and you want it to pass those parameters to CHECKNEW.BAT. You can use the following command in the parent batch program:
call checknew %1 %2