Wrong Encryption Password and Errorlevel Value
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Hello,
When using 7z.exe in a Windows batch file, attempting to restore archives (7z, ZIP, or RAR) with an incorrect password can lead to the errorlevel value being the same as that for a corrupt archive. As a result, it becomes challenging to automatically distinguish between encrypted and corrupted archives across all three file types.
While there is a parameter indicating whether an archive is encrypted or not, it consistently returns a negative result for RAR files, rendering this approach ineffective.
It would be highly beneficial if there were an additional errorlevel value specifically assigned for incorrect password inputs.
I would appreciate any guidance or suggestions on this matter.
Thank you,
JC