call
Windows CMD · Terminal · available in the simulator
What it does
Calls a subroutine or another .bat script.
Syntax
call [unidad:][ruta]archivo [parámetros] | call :etiqueta [argumentos]
Options and parameters
:ETIQUETAcalls an internal subroutine
:etiquetaCalls a subroutine defined within the script itself.
call :subrutina valor
Usage examples
call otro.batcall :etiquetacall otro.bat arg1 arg2call otro.bat argumentocall :subrutina valor
Notes and common mistakes
- Without call, running another .bat does not return to the original script.