NOTE:
THIS IS NOT A DUPLICATE!! OF "Temporarily interrupt SETLOCAL"
i want to be able to SETLOCAL ENABLEDELAYEDEXPANSION
then do something, then ENDLOCAL ENABLEDELAYEDEXPANSION
do something else (7z command) then SETLOCAL ENABLEDELAYEDEXPANSION
once again in a .bat! because 7z.exe does not allow SETLOCAL ENABLEDELAYEDEXPANSION
. see?
code:
SETLOCAL ENABLEDELAYEDEXPANSION
Echo hi!
7z e -o"C:\test" -i!*.jar "C:\*.zip"
output:
hi!
Error: incorrect command line
when i change my code to:
Echo hi!
7z e -o"C:\test" -i!*.jar "C:\*.zip"
it works!!!!!!
here is my code so far to interrupt SETLOCAL ENABLEDELAYEDEXPANSION
, unfortunately it doesn't work.
SETLOCAL ENABLEDELAYEDEXPANSION
Echo hi!
Endlocal
7z e -o"C:\test" -i!*.jar "C:\*.zip"
SETLOCAL ENABLEDELAYEDEXPANSION
Echo hi!
i want to put this in a different .bat which needs SETLOCAL ENABLEDELAYEDEXPANSION
to run