ERRORLEVEL problems in command line version (7za.exe)
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Hello and sorry for my bad english!
Have 7za.exe for Windows:
7-Zip (A) 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06
Problem: %ERRORLEVEL% always = 0
Example (wrong syntax):
C:\backups>7za.exe -qwiejqwiej & echo %ERRORLEVEL%
Error:
Incorrect command line
0
In this case we must see 7, not 0
Same situation with Warning (return code 1).
Tested on WIndows Vista, Windows XP SP2, Windows Server
Construction
if ERRORLEVEL 1 ....
shows the same result
this is bug or i'm doing something wrong?
Thank you in advance
Logged In: NO
sorry, i was wrong.
everething works fine.
i'm idiot