Menu

#687 Wrong Encryption Password and Errorlevel Value

open
nobody
None
5
4 days ago
4 days ago
No

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

Discussion


Log in to post a comment.

MongoDB Logo MongoDB