コード例 #1
0
    static void RunUploaderToolScript()
    {
        string arguments  = Path.Combine(Application.dataPath, "../Support/UploaderTool/run.sh");
        string workingDir = Path.Combine(Application.dataPath, "../Support/UploaderTool/");

        RunProcessHelper.Run(arguments, workingDir);
    }
コード例 #2
0
 public static void SEPaymentCardProcessing(string PClog, string binDir, string filePath)
 {
     //DOC1GENA Routines
     RunProcessHelper.RunProcess(true, @"\\Doc2\Doc1\Generate\doc1gen.exe", @"D:\Prod\Simply_Energy\PaymentCards\bin\PaycardsArch.hip\"" OPS=D:\Prod\Simply_Energy\PaymentCards\bin\DOC1fileA.OPS\""  >> \\doc2\Prod\Simply_Energy\PaymentCards\bin\Error.log");
     FileProcessHelper.AppendFile(binDir + "\\Dtotal.txt", PClog, false);
     //Shrink PDF routine
     AutoShrinkProg1(filePath);
 }
コード例 #3
0
 public static void AutoShrinkProg1(string filePath)
 {
     FileProcessHelper.DeleteFiles(@"\\prog1\PDFwork2\simplyPC", "*.pdf");
     FileProcessHelper.CopyFiles(@"\\DOC2\Prod\Simply_Energy\PaymentCards\spool", @"\\prog1\PDFwork2\simplyPC", "*.pdf");
     RunProcessHelper.RunProcess(true, @"\\prog1\Fdrive\utl\PSexec.exe", "\"\\prog1 - u zipform\\elixir - p zipform\" d:\\PDFwork\\AutoBatch SEPC_Shrink.bat");
     FileProcessHelper.CopyFiles(@"\\prog1\PDFwork2\simplyPC", @"\\DOC2\Prod\Simply_Energy\PaymentCards\spool", "*.pdf");
     FileProcessHelper.DeleteFiles(@"\\prog1\PDFwork2\simplyPC", "*.pdf");
 }
コード例 #4
0
        public static void preProcessingSteps(string filePath, string binDir, string PClog)
        {
            string[]   dirToLookIn       = new string[] { "\\spool", "\\data" };
            string[][] FileTypesToDelete = { new string[] { "pdf", "csv", "txt", "jrn", "zip" }, new string[] { "bsp", "dbf", "dpi", "sum", "trf", "txt", "ntx" } };

            for (int i = 0; i < 2; i++)
            {
                foreach (string extension in FileTypesToDelete[i])
                {
                    FileProcessHelper.DeleteFiles(filePath + dirToLookIn[i], "*." + extension);
                }
            }

            //TODO: IO operations should use try / catch or within wrapper methods when dealing with as considered unsafe operations
            FileProcessHelper.AppendFiles(filePath + "\\in", @"\\doc2\Prod\Simply_Energy\PaymentCards\data\EA_EAPRD_EZYPAY.TXT", "EA*.txt", false);
            RunProcessHelper.RunProcess(true, filePath + @"\data\ZFPROC200pipeDOC2.exe", "/T");

            FileProcessHelper.DeleteFile(PClog);
            FileProcessHelper.DeleteFile(binDir + "\\Dtotal.txt");
            FileProcessHelper.DeleteFile(binDir + "\\pages.txt");
            FileProcessHelper.CopyFile(binDir + "\\blankpages.txt", binDir, "pages.txt");
        }