私のC#アプリ内で、7zプロセスを実行してアーカイブをそのディレクトリに抽出します
アーカイブは、たとえば %TEMP% ディレクトリのランダムな名前のディレクトリにあります。
C:\Documents and Settings\User\Local Settings\Temp\vtugoyrc.fd2
(fullPathFilename = "C:\Documents and Settings\User\Local Settings\Temp\vtugoyrc.fd2\xxx.7z")
私のコードは次のとおりです。
sevenZipProcessInfo.FileName = SEVEN_ZIP_EXECUTABLE_PATH;
sevenZipProcessInfo.Arguments = "x " + fullPathFilename;
sevenZipProcessInfo.WindowStyle = ProcessWindowStyle.Hidden;
sevenZipProcessInfo.UseShellExecute = true;
sevenZipProcessInfo.WorkingDirectory = Path.GetDirectoryName(fullPathFilename);
Process sevenZipProcess = Process.Start(sevenZipProcessInfo);
if (sevenZipProcess != null)
{
sevenZipProcess.WaitForExit();
if (sevenZipProcess.ExitCode != 0)
...exit code is 2 (fatal error by the 7z help)
詳細なドキュメントはどこにありますか?