Když nevíš, tak proč to nezkusíš? kdyby jsi zkusil, nemohl by jsi napsat, co píšeš!... len neviem ci to pomoze. Lebo 7zip ziadny errorlevel nevrati nakolko
Help v 7-zip.chm obsahuje i hodnoty návratových kódů v případě problémů:
Exit Codes from 7-Zip
7-Zip returns the following exit codes:
Code Meaning
0 No error
1 Warning (Non fatal error(s)). For example, one or more files were locked by some other application, so they were not compressed.
2 Fatal error
7 Command line error
8 Not enough memory for operation
255 User stopped the process
Zkusil jsem na souborech které běžící procesy odmítají povolit číst a v logu je vše zaznamenáno, včetně návratového kódu 7z.exe errorlevel, který je v tomto případě 1!
Obsah logu:
Creating archive e:\zalohaFpo.zip
Compressing 1495.tmp
...
Compressing adresar\ticB24.tmp
WARNING: The process cannot access the file because it is being used by another process.
Compressing adresar\ticD2C.tmp
Compressing adresar\ticEB0.tmp
WARNING: The process cannot access the file because it is being used by another process.
Compressing adresar\ticECA.tmp
...
Compressing Temp.iso
Compressing ~DF4111.tmp
WARNING: The process cannot access the file because it is being used by another process.
Compressing ~DFE59E.tmp
WARNING: The system cannot find the file specified.
Compressing ~DFE5AD.tmp
WARNING: The system cannot find the file specified.
WARNINGS for files:
e:\temp\adresar\ticB24.tmp : The process cannot access the file because it is being used by another process.
e:\temp\adresar\ticEB0.tmp : The process cannot access the file because it is being used by another process.
e:\temp\~DF4111.tmp : The process cannot access the file because it is being used by another process.
e:\temp\~DFE59E.tmp : The system cannot find the file specified.
e:\temp\~DFE5AD.tmp : The system cannot find the file specified.
----------------
WARNING: Cannot open 5 files