Menu

#817 ERRORLEVEL problems in command line version (7za.exe)

closed-rejected
nobody
None
5
2008-04-15
2008-04-08
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    Logged In: NO

    sorry, i was wrong.
    everething works fine.

    i'm idiot

     
  • Igor Pavlov

    Igor Pavlov - 2008-04-15
    • status: open --> closed-rejected
     

Log in to post a comment.