When invoking 7-Zip from the command line with a list file
(from the help file)
List file
You can supply one or more filenames or wildcards for special list files (files containing lists of files). The filenames in such list file must be separated by new line symbol(s).
(...)
For example, if the file "listfile.txt" contains the following:
My programs\*.cpp Src\*.cppthen the command
7z a -tzip archive.zip @listfile.txtadds to the archive "archive.zip" all "*.cpp" files from directories "My programs" and "Src".
with a list file with no wildcards
file1.exe
file2.dll
file3.dll
file4.txt
7-Zip will display these messages if any files are missing:
...
file2.dll: WARNING: Das System kann die angegebene Datei nicht finden.
...
Creating archive ...
Compressing ...
WARNINGS for files:
file2.dll : Das System kann die angegebene Datei nicht finden.
----------------
WARNING: Cannot find 1 file
Still, the exit code of the process will be 0.
Is there a CLI switch to make the exit code non-zero if any listed files are missing?