I have a performance run scenario which calls
cd %AUTORUN_DIR%
call abc.bat
cd %AUTORUN_DIR%
call abc.bat
cd %AUTORUN_DIR%
call abc.bat
This currently runs for one Operator. Now i want to edit this and run this code for 3 operators (Operator1 , Operator2,Operator3)
so i want something like this
set j = 1;
set operator = "Operator"%j% (Expecting this to be Operator1 in the first run of the loop)
for operator in ("Operator1","Operator2","Operator3") do
cd %AUTORUN_DIR%
call abc.bat
cd %AUTORUN_DIR%
call abc.bat
cd %AUTORUN_DIR%
call abc.bat
I want this to run for Operator1,Operator2,Operator3.
With my limited batch skills , i am finding it difficult to do.
Please help
You may define a subroutine and pass to it the current operator in the subroutine parameter, and then define the
operatorvariable with the parameter value:Please, feel free to do any question about this code.