[SOLVED] The exclamation mark is acting weird !
Posted: 26 May 2011 02:44
[SOLVED]
If i remove it from the script it works, otherwise it doesnt ^^^^^^^^^^^^^^^! I've deobfuscated and minimized the code.
Can anybody help or give me some advise please ? How do I echo. ! without constantly running into trouble ?
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!