batch call another batch with parameters 1

batch call another batch with parameters

== Batch 1 ==
call "another-batch.bat" param1

== Batch 2 ==
echo %~1

Here is what the above code is Doing:
1. The first batch file is calling the second batch file and passing the parameter “param1”
2. The second batch file is echoing the parameter that was passed to it.

The output of the above code is:

param1

Similar Posts