|
CALL
Calls one batch program from another without stopping the
parent batch program.
Syntax
CALL [drive:][path]filename [parameters]
CALL :label [parameters]
CALL internal_cmd
Key:
pathname The batch program to run
parameters Any command-line arguments
:label Jump to a label in the current batch script.
internal_cmd Any internal command, first expanding any
variables in the argument
The CALL command will pass control to the statement after
the label specified along with any specified arguments.
To exit the subroutine specify GOTO:eof this will transfer
control to the end of the current subroutine.
The CALL command will launch a new batch file context along
with any specified arguments.
When the end of the second batch file is reached (or if EXIT
is used), control will return to just after the initial CALL
statement.
A label is defined by a single colon followed by a name.
Cmd Commands
|