AssToolkit.MainForm.ZipPatcher C# (CSharp) Method

ZipPatcher() private method

private ZipPatcher ( string folderName, string fileName ) : void
folderName string
fileName string
return void
        private void ZipPatcher(string folderName, string fileName)
        {
            string szPath = Application.StartupPath + "\\7z\\" + "7za.exe";
            string arguements = "a -mcu \"" + folderName + "\\" + fileName + ".zip\" \"" + folderName + "\\" + fileName + "\"";

            Process szProcess = new Process();
            szProcess.StartInfo.FileName = szPath;
            szProcess.StartInfo.Arguments = arguements;
            szProcess.StartInfo.UseShellExecute = false;
            szProcess.StartInfo.CreateNoWindow = true;
            szProcess.StartInfo.RedirectStandardOutput = true;

            szProcess.Start();
            szProcess.BeginOutputReadLine();
            szProcess.OutputDataReceived += new DataReceivedEventHandler(SZProcess_OutputDataReceived);
        }