diff --git a/Code/CSRender/CSRender/CompareTIFF.cs b/Code/CSRender/CSRender/CompareTIFF.cs index a9eb0eebb824ffc3d00cc97b50f00843d1a63fa3..b7841a8e70333003b83815e67e76798a7a5ab524 100644 --- a/Code/CSRender/CSRender/CompareTIFF.cs +++ b/Code/CSRender/CSRender/CompareTIFF.cs @@ -28,8 +28,8 @@ namespace CSRender { //実行用コンソールの呼び出し ProcessStartInfo processStartInfo = new ProcessStartInfo(); - //processStartInfo.FileName = System.IO.Path.Combine(inExePath, "PureVerify.exe"); - processStartInfo.FileName = "cmd.exe"; + processStartInfo.FileName = System.IO.Path.Combine(inExePath, "PureVerify.exe"); + //processStartInfo.FileName = "cmd.exe"; //processStartInfo.WindowStyle = ProcessWindowStyle.Maximized; processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示 processStartInfo.UseShellExecute = false; // シェル機能オフ @@ -40,11 +40,11 @@ namespace CSRender string reportInfoPath = MainWindow.editEachReport(inAppDir,inTargetFileName, inReportInfo, targetDir, referenceDir); //引数設定 - //processStartInfo.Arguments = inVerifyArg; - processStartInfo.Arguments = "/C "; + processStartInfo.Arguments = inVerifyArg; + /*processStartInfo.Arguments = "/C "; processStartInfo.Arguments += System.IO.Path.Combine(inExePath, "PureVerify.exe"); processStartInfo.Arguments += " "; - processStartInfo.Arguments += inVerifyArg; + processStartInfo.Arguments += inVerifyArg;*/ //対象ファイル名を設定 processStartInfo.Arguments += "/inspTiff \""; @@ -83,14 +83,17 @@ namespace CSRender //コンソールへの出力を制御 processStartInfo.Arguments += " /consoleOut "; - processStartInfo.Arguments += "1";//0:新規のコンソールに出力、1:親コンソールに出力(無い場合は新規に)、2:NULLコンソールに出力 + processStartInfo.Arguments += "2";//0:新規のコンソールに出力、1:親コンソールに出力(無い場合は新規に)、2:NULLコンソールに出力 //processStartInfo.Arguments += " > nul"; - + Process process = Process.Start(processStartInfo); process.WaitForExit(); process.Close(); + //process.WaitForExit(); + process.Close(); + //NGの数を取得 int[] NGOfThisFile = getNgOfPDF(logFileName);