I have this FOR LOOP that is suppose to run through all sub-folders and output a CSV file in them, however the for loop only runs through the first sub-folder> I'm new to batch scripting so I may be overlooking something rather easy but I cannot figure out my problem.
FOR LOOP:
FOR %%_ IN (
MISAG
MITAW
NYAMS
NYBIN
WIAPP
WIMIL) DO (
IF NOT EXIST %LOG_DIR%\%%_\ ( MD %LOG_DIR%\%%_\ )
echo=" here I am "
echo=Folder is: %%_
echo LOG_NM path and name ..... %LOG_DIR%\%%_\%LOG_NM%
CALL test_connection_%%_.bat
)
I can add more code if that is helpful.