I think you should specify the parameters for the for cycle. By default, each line of dir's output is broken into space-delimited tokens, so the spaces in the filenames are seen as separators. Try something like the following:
for /f "tokens=*" %%A in ... "%%~nA.zip" "%%A"

Truncated file name when compressing using batch file.

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/sevenzip/discussion/45797/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/