完善bz输出的错误消息

14 views
Skip to first unread message

xxx xxx

unread,
Dec 11, 2025, 9:55:25 PMDec 11
to Bandizip for Windows forum
如果使用 bz x -target:auto -y -p:123 test.rar
对于不同的压缩包,如果密码错误,会反馈不同的消息,例如
ERROR: Invalid password
Error - test.txt (0xa0000021: Invalid Password)
Error - test.txt (0xa0000060: The password is invalid or the file is broken)
希望能统一bz的报错消息,还有如果解压完成后,如果没有发生错误,也希望能反馈一个ok的消息

KH Park

unread,
Dec 11, 2025, 11:52:26 PMDec 11
to Bandizip for Windows forum

Hello. This is Bandisoft.


The ZIP format contains a small checksum to verify the password, whereas the RAR format does not.

Therefore:

  • ZIP format + Invalid password checksum → Invalid password

  • ZIP format + Valid checksum, but an error occurs → Invalid password or Corrupted file

  • RAR format + (Invalid password or Corrupted file) → Invalid password or Corrupted file (Cannot distinguish)

Technically, these are different errors, so Bandizip needs to distinguish between them.



Best regards, 
Park, KH



--
You received this message because you are subscribed to the Google Groups "Bandizip for Windows forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bandizip-win...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bandizip-win/e029eeb6-a15d-48be-abeb-4eb65596bcdfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages