Software Development Network>> Visual C#>> How To Execute applications?
Hi,You do as follows:You can use the Arguments property to pass the arguments to the app.using System.Diagnostics;Process newProcess = new Process();newProcess.StartInfo.FileName = "notepad.exe";newProcess.StartInfo.Arguments = @"c:\test.txt";newProcess.Start();Regards,Vikram
How To Execute applications?
ase3575
Hi,
You do as follows:
You can use the Arguments property to pass the arguments to the app.
using System.Diagnostics;
Process newProcess = new Process();
newProcess.StartInfo.FileName = "notepad.exe";
newProcess.StartInfo.Arguments = @"c:\test.txt";
newProcess.Start();
Regards,
Vikram
even
You can use the Start method of Process class to execute an application in C#:
System.Diagnostics.Process.Start("notepad.exe");
Regards,
-chris