From f83991e09b393e54dad82a662e917b41fce490a5 Mon Sep 17 00:00:00 2001 From: tsuji Date: Thu, 24 Mar 2022 15:06:33 +0900 Subject: [PATCH] =?UTF-8?q?Process=E3=81=8B=E3=82=89=E7=9B=B4=E6=8E=A5Pure?= =?UTF-8?q?Verify.exe=E3=82=92=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=99?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F=E3=81=AB=E5=86=8D=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CSRender/CSRender/CompareTIFF.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Code/CSRender/CSRender/CompareTIFF.cs b/Code/CSRender/CSRender/CompareTIFF.cs index a9eb0ee..b7841a8 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); -- 2.22.0