Suppose a CALL appears within a FOR loop. Is it safe to use the variable that controls the loop within the second script, even if the second script does not SETLOCAL? Something like this:
FOR %%A IN (A B C) DO (
ECHO %%A
CALL Second.bat
)
REM This is Second.bat
FOR %%A IN (1 2 3) DO (
ECHO %%A
...
)
In my tests, variable A seems local to each script. I would like to know whether this behavior is granted.