Commit f75dbee2 authored by tsuji's avatar tsuji

コードを整理

parent f83991e0
...@@ -29,11 +29,8 @@ namespace CSRender ...@@ -29,11 +29,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.WindowStyle = ProcessWindowStyle.Maximized;
processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示 processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示
processStartInfo.UseShellExecute = false; // シェル機能オフ processStartInfo.UseShellExecute = false; // シェル機能オフ
//processStartInfo.RedirectStandardOutput = true;//標準出力をリダイレクト
//レポートに書き込む情報を編集 //レポートに書き込む情報を編集
inTargetFileName = System.IO.Path.GetFileNameWithoutExtension(inTargetFileName); inTargetFileName = System.IO.Path.GetFileNameWithoutExtension(inTargetFileName);
...@@ -41,10 +38,6 @@ namespace CSRender ...@@ -41,10 +38,6 @@ namespace CSRender
//引数設定 //引数設定
processStartInfo.Arguments = inVerifyArg; processStartInfo.Arguments = inVerifyArg;
/*processStartInfo.Arguments = "/C ";
processStartInfo.Arguments += System.IO.Path.Combine(inExePath, "PureVerify.exe");
processStartInfo.Arguments += " ";
processStartInfo.Arguments += inVerifyArg;*/
//対象ファイル名を設定 //対象ファイル名を設定
processStartInfo.Arguments += "/inspTiff \""; processStartInfo.Arguments += "/inspTiff \"";
...@@ -77,8 +70,6 @@ namespace CSRender ...@@ -77,8 +70,6 @@ namespace CSRender
//レポート記述内容の参照先 //レポート記述内容の参照先
processStartInfo.Arguments += "/topPageInfo "; 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; processStartInfo.Arguments += reportInfoPath;
//コンソールへの出力を制御 //コンソールへの出力を制御
......
...@@ -571,22 +571,7 @@ namespace CSRender ...@@ -571,22 +571,7 @@ namespace CSRender
string[] reportFiles = System.IO.Directory.GetFiles(workDir, "*.pdf.log", System.IO.SearchOption.TopDirectoryOnly); string[] reportFiles = System.IO.Directory.GetFiles(workDir, "*.pdf.log", System.IO.SearchOption.TopDirectoryOnly);
foreach (var logfileName in reportFiles) 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[] NumOfThisFile = CompareTIFF.getNgOfPDF(logfileName);
int NumOfThisNG = NumOfThisFile[0]; int NumOfThisNG = NumOfThisFile[0];
......
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