Commit f83991e0 authored by tsuji's avatar tsuji

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

parent ac282f62
......@@ -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,7 +83,7 @@ namespace CSRender
//コンソールへの出力を制御
processStartInfo.Arguments += " /consoleOut ";
processStartInfo.Arguments += "1";//0:新規のコンソールに出力、1:親コンソールに出力(無い場合は新規に)、2:NULLコンソールに出力
processStartInfo.Arguments += "2";//0:新規のコンソールに出力、1:親コンソールに出力(無い場合は新規に)、2:NULLコンソールに出力
//processStartInfo.Arguments += " > nul";
......@@ -91,6 +91,9 @@ namespace CSRender
process.WaitForExit();
process.Close();
//process.WaitForExit();
process.Close();
//NGの数を取得
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