![]() |
Exit Codes from 7-Zip ?
Hallo
wie komme ich an die Exit Codes von 7z nach der Ausführung. Möchte wissen ob fehlerfrei gepackt wurde oder ein Fehler aufgetreten ist(Code 0 = No error ). mein bisheriger Aufruf:
Delphi-Quellcode:
Beschreibung in der 7z Hilfe
ZipCommand := 'a -t7z "' + ZipDestin + '" "' + ZipSource + '"';
ShellExecute(0, Nil, PChar('C:\Programme\7-Zip\7zG.exe'), Pchar(ZipCommand), Pchar(ZipDestin), SW_SHOWNORMAL); 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 |
AW: Exit Codes from 7-Zip ?
<del>
|
AW: Exit Codes from 7-Zip ?
Dann wirst Du CreateProcess verwenden und auf Beendigung warten müssen.
Beispiele finden sich hier im Forum sicher reichlich. |
AW: Exit Codes from 7-Zip ?
1. Mit CreateProcess starten.
2. Auf Ende des Prozesses warten (WaitForSingleObject(processinfo.hProcess). 3. ExitCode auswerten (GetExitCodeProcess(processinfo.hProcess, FExitCode)). |
AW: Exit Codes from 7-Zip ?
|
AW: Exit Codes from 7-Zip ?
Danke,
mit CreateProcess klappts. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:46 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz