From f75dbee234c34c4b0a2bf5f1f97d9d5c91121064 Mon Sep 17 00:00:00 2001 From: tsuji Date: Fri, 1 Apr 2022 14:55:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CSRender/CSRender/CompareTIFF.cs | 9 --------- Code/CSRender/CSRender/MainWindow.xaml.cs | 15 --------------- 2 files changed, 24 deletions(-) diff --git a/Code/CSRender/CSRender/CompareTIFF.cs b/Code/CSRender/CSRender/CompareTIFF.cs index b7841a8..9c87e7a 100644 --- a/Code/CSRender/CSRender/CompareTIFF.cs +++ b/Code/CSRender/CSRender/CompareTIFF.cs @@ -29,11 +29,8 @@ namespace CSRender //実行用コンソールの呼び出し ProcessStartInfo processStartInfo = new ProcessStartInfo(); processStartInfo.FileName = System.IO.Path.Combine(inExePath, "PureVerify.exe"); - //processStartInfo.FileName = "cmd.exe"; - //processStartInfo.WindowStyle = ProcessWindowStyle.Maximized; processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示 processStartInfo.UseShellExecute = false; // シェル機能オフ - //processStartInfo.RedirectStandardOutput = true;//標準出力をリダイレクト //レポートに書き込む情報を編集 inTargetFileName = System.IO.Path.GetFileNameWithoutExtension(inTargetFileName); @@ -41,10 +38,6 @@ namespace CSRender //引数設定 processStartInfo.Arguments = inVerifyArg; - /*processStartInfo.Arguments = "/C "; - processStartInfo.Arguments += System.IO.Path.Combine(inExePath, "PureVerify.exe"); - processStartInfo.Arguments += " "; - processStartInfo.Arguments += inVerifyArg;*/ //対象ファイル名を設定 processStartInfo.Arguments += "/inspTiff \""; @@ -77,8 +70,6 @@ namespace CSRender //レポート記述内容の参照先 processStartInfo.Arguments += "/topPageInfo "; - //string textPath = System.IO.Path.Combine("PureVerify.Data", "RipVerify", "work", "OUT_INFO", "CSReportInf.txt"); - //processStartInfo.Arguments += System.IO.Path.Combine(appDirectory, textPath); processStartInfo.Arguments += reportInfoPath; //コンソールへの出力を制御 diff --git a/Code/CSRender/CSRender/MainWindow.xaml.cs b/Code/CSRender/CSRender/MainWindow.xaml.cs index 06743a4..b4d6df0 100644 --- a/Code/CSRender/CSRender/MainWindow.xaml.cs +++ b/Code/CSRender/CSRender/MainWindow.xaml.cs @@ -571,22 +571,7 @@ namespace CSRender string[] reportFiles = System.IO.Directory.GetFiles(workDir, "*.pdf.log", System.IO.SearchOption.TopDirectoryOnly); foreach (var logfileName in reportFiles) { - /* - string tranceString = File.ReadLines(logfileName, Encoding.GetEncoding("Shift-JIS")).Skip(16).First();//16行目を抽出 - tranceString = tranceString.Replace("NG", "");//不要な部分をカット - tranceString = tranceString.Replace(":", ""); - tranceString = tranceString.Replace(" ", ""); - int NumOfThisFile = 0; - try - { - NumOfThisFile = Int32.Parse(tranceString); - } - catch (FormatException e) - { - NumOfThisFile = 0; - } - */ int[] NumOfThisFile = CompareTIFF.getNgOfPDF(logfileName); int NumOfThisNG = NumOfThisFile[0]; -- 2.22.0