建议 bz.exe 输出错误信息到 stderr

36 views
Skip to first unread message

xxx xxx

unread,
Dec 11, 2025, 7:24:50 AMDec 11
to Bandizip for Windows forum

建议在命令行模式下,将错误信息输出到 stderr,并使用非零返回码表示失败,便于脚本判断

KH Park

unread,
Dec 11, 2025, 11:58:54 PMDec 11
to Bandizip for Windows forum

Hello. This is Bandisoft.


Thank you for your advice.

* bz.exe and Bandizip.exe have error codes like this. (Not documented yet.)

APPRET_OK = 0,
APPRET_WARNING = 1,
APPRET_ERROR = 2,
APPRET_ERROR_SKIN = 3,
APPRET_CANT_INIT = 10,
APPRET_USER_CANCEL = 11,
APPRET_INVALID_PARAM = 12,
APPRET_INVALID_SWITCH = 13,
APPRET_INVALID_PASSWORD = 14,
APPRET_PASSWORD_NOT_SET = 15,
APPRET_CANT_OPEN_FILE = 16,
APPRET_UNKNOWN_ARCHIVE = 17,
APPRET_INVALID_COMMAND = 18,
APPRET_PARSE_PARAM_ERR = 19,
APPRET_INVALID_PASSORBROKEN = 20,

* I'll check stderr issue in the next major update.



Best regards, 
Park, KH



On Thu, Dec 11, 2025 at 9:24 PM xxx xxx <bvuuc...@gmail.com> wrote:

建议在命令行模式下,将错误信息输出到 stderr,并使用非零返回码表示失败,便于脚本判断

--
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/c83e2ce7-b01a-4f22-a43d-b100971dfbden%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages