Rank: Member Groups: Member
Joined: 2/23/2008 Posts: 1
|
//Start an Outside Application Programmatically
System.Diagnostics.Process p = new Process(); p.StartInfo.RedirectStandardOutput=false; p.StartInfo.FileName="C:\\Test.txt"; //p.StartInfo.FileName="C:\\Test.EXE"; //p.StartInfo.FileName="C:\\Test.BAT"; p.StartInfo.UseShellExecute=true; p.Start(); p.WaitForExit(); p.Dispose();
|