Commit f83991e0 authored by tsuji's avatar tsuji

Processから直接PureVerify.exeを呼び出す形式に再修正

parent ac282f62
...@@ -28,8 +28,8 @@ namespace CSRender ...@@ -28,8 +28,8 @@ namespace CSRender
{ {
//実行用コンソールの呼び出し //実行用コンソールの呼び出し
ProcessStartInfo processStartInfo = new ProcessStartInfo(); ProcessStartInfo processStartInfo = new ProcessStartInfo();
//processStartInfo.FileName = System.IO.Path.Combine(inExePath, "PureVerify.exe"); processStartInfo.FileName = System.IO.Path.Combine(inExePath, "PureVerify.exe");
processStartInfo.FileName = "cmd.exe"; //processStartInfo.FileName = "cmd.exe";
//processStartInfo.WindowStyle = ProcessWindowStyle.Maximized; //processStartInfo.WindowStyle = ProcessWindowStyle.Maximized;
processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示 processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示
processStartInfo.UseShellExecute = false; // シェル機能オフ processStartInfo.UseShellExecute = false; // シェル機能オフ
...@@ -40,11 +40,11 @@ namespace CSRender ...@@ -40,11 +40,11 @@ namespace CSRender
string reportInfoPath = MainWindow.editEachReport(inAppDir,inTargetFileName, inReportInfo, targetDir, referenceDir); string reportInfoPath = MainWindow.editEachReport(inAppDir,inTargetFileName, inReportInfo, targetDir, referenceDir);
//引数設定 //引数設定
//processStartInfo.Arguments = inVerifyArg; processStartInfo.Arguments = inVerifyArg;
processStartInfo.Arguments = "/C "; /*processStartInfo.Arguments = "/C ";
processStartInfo.Arguments += System.IO.Path.Combine(inExePath, "PureVerify.exe"); processStartInfo.Arguments += System.IO.Path.Combine(inExePath, "PureVerify.exe");
processStartInfo.Arguments += " "; processStartInfo.Arguments += " ";
processStartInfo.Arguments += inVerifyArg; processStartInfo.Arguments += inVerifyArg;*/
//対象ファイル名を設定 //対象ファイル名を設定
processStartInfo.Arguments += "/inspTiff \""; processStartInfo.Arguments += "/inspTiff \"";
...@@ -83,14 +83,17 @@ namespace CSRender ...@@ -83,14 +83,17 @@ namespace CSRender
//コンソールへの出力を制御 //コンソールへの出力を制御
processStartInfo.Arguments += " /consoleOut "; processStartInfo.Arguments += " /consoleOut ";
processStartInfo.Arguments += "1";//0:新規のコンソールに出力、1:親コンソールに出力(無い場合は新規に)、2:NULLコンソールに出力 processStartInfo.Arguments += "2";//0:新規のコンソールに出力、1:親コンソールに出力(無い場合は新規に)、2:NULLコンソールに出力
//processStartInfo.Arguments += " > nul"; //processStartInfo.Arguments += " > nul";
Process process = Process.Start(processStartInfo); Process process = Process.Start(processStartInfo);
process.WaitForExit(); process.WaitForExit();
process.Close(); process.Close();
//process.WaitForExit();
process.Close();
//NGの数を取得 //NGの数を取得
int[] NGOfThisFile = getNgOfPDF(logFileName); int[] NGOfThisFile = getNgOfPDF(logFileName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment