If i remove it from the script it works, otherwise it doesnt ^^^^^^^^^^^^^^^! I've deobfuscated and minimized the code.
Code: Select all
set LF=^
:: Two empty lines are neccessary
Setlocal EnableDelayedExpansion
set ^"\n=^%LF%%LF%"
set ^"\n2=^^^%LF%%LF%^%LF%%LF%^^^"
set /a Error = 0
set "$0.error=ok"
set "$1.error=error"
set ^"@ActError=do ( %\n2%
if ^^^!Error^^^! neq 0 if %%~a neq 0 ( %\n2%
if defined TraceFunc ( %\n2%
echo. WARNING: script can't close; TraceFunc in on %\n2%
set /p "?= " ^<nul %\n2%
pause %\n2%
) else ( %\n2%
echo. WARNING: script can't close; implementation missing ^^^^^^^^^^^^^^^! %\n2%
set "?=$^!error^!.error" %\n2%
for %%^^^! in ( "^!?^!" ) do set /p "?= [^!%%~^!^!:^!error^!]" ^<nul %\n2%
) %\n2%
) %\n2%
)"
for /f "usebackq tokens=1-26 delims=¦" %%a in ( '"%%~a"¦"%%~b"' ) !@ActError!