I\'m trying to write an IF ELSE
statement nested inside another IF
statement. Here\'s what I have:
IF %dirdive%==1 (
IF DEFINED lo
****@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION****
IF %dirdive%==1 (
IF DEFINED log (
ECHO %DATE%, %TIME% >> ****!log!****
FOR /R %root1% %%G IN (.) DO (
SET _G=%%G
CALL :TESTEVERYTHING !_G:~0,-1! %root1% %root2% ****!log!****
)
GOTO :end
) ELSE (
ECHO %DATE%, %TIME%
FOR /R %root1% %%G IN (.) DO (
SET _G=%%G
CALL :TESTEVERYTHINGnolog !_G:~0,-1! %root1% %root2%
)
GOTO :end
)
)
****@ENDLOCAL****
João Mac-Cormick