Errorlevel=0 if input file(s) doesn't/don't exist
A free file archiver for extremely high compression
Brought to you by:
ipavlov
I am using 7za.exe 25.01.
7za.exe a archive.7z this_file_does_not_exist.txt
Returns errorlevel 0 (success). In both cases if target archive exists or not.
How can we know that command was successfull if input files don't exist?
I think it should return errorlevel that is not zero.
check it again.
Thank you for the answer. But I received different errorlevels:
and
and
Why does 7za.exe create new archive file if there are no files to add? (waste of time)
And I really receive different errorlevel values.
Sometimes it even returns errorlevel=2
I really miss full documentation for command line 7za.exe (google can't find anything useful).
For example:
-bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
What do values 0,1,2 represent?
Thank you.
Look
7-zip.chmfile.Thank you. 7-zip.chm file is not included in the console version download package (https://www.7-zip.org/a/7z2501-extra.7z). Maybe you could add it?
I had to download https://www.7-zip.org/a/7z2501-x64.exe and extract it from there (I don't have a GUI version installed).
Thank you.