ProcessStartInfo()
string cmdexePath = @"D:\SortProgram\SortProgram\Executable\TS_PD.exe"; //notice the quotes around the below string... string myApplication = cmdexePath + " " + "D:\\SortedFile.txt D:\\FixFormat.txt "+ " " + GlobalClass.Global.DetPath + " " + MergeFields +" 10000"; //the /K keeps the CMD window open - even if your windows app closes // string cmdArguments = String.Format("/K {0}", myApplication); string cmdArguments = myApplication; System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(cmdexePath,cmdArguments); System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo = psi; p.Start();
TS_PD.exe
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)