ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe"); processStartInfo.RedirectStandardInput = true; processStartInfo.RedirectStandardOutput = true; processStartInfo.UseShellExecute = false; string cocopath = Application.StartupPath; processStartInfo.WorkingDirectory = cocopath + "\\CocoImport"; processStartInfo.WindowStyle = ProcessWindowStyle.Maximized; Process process = Process.Start(processStartInfo); if (process != null) { string a = txtinput.Text + " -d"; string b = txtoutput.Text + " -f"; process.StandardInput.WriteLine("java -jar CocoImport.jar -s " + a + " " + b); process.StandardInput.Close(); string outputString = process.StandardOutput.ReadToEnd(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)