|
CALL
Calls a batch file or program from within a batch file. The
calling batch file does not continue until contol is
returned by the program/file being called.
Syntax
call [[Drive:][Path] FileName [BatchParameters]] [:label [arguments]]
Parameters
[ Drive : ][ Path ] FileName : Specifies the location and
name of the batch program
you want to call.
BatchParameters : Specifies any command-line information
required by the batch program, including
command-line options, file names, batch
parameters, or variables.
: label : Specifies the label to which you want a batch
program control to jump.
arguments : Specifies any command-line information that
you pass to the new instance of the batch
program that begins at :label, including
command-line options, file names, batch
parameters, or variables.
Examples
Calls another batch file and then returns control to the
first when done.
CALL C:\WINDOWS\NEW_BATCHFILE.BAT
Call another program
CALL C:\calc.exe
Batch File Commands
|