hi
i have an application exe on C:\\ . that requires 3 parameters to run.
now wot is the simple and easiest way to call this exe from a C# windows application
thanks and regards
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Marimuthu ArigovindasamyPosted Jun 7, 2010, 12:23 AM
Namespace: System.Diagnostics
Code:
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = false;
//Set your exe file location
myProcess.StartInfo.FileName = @"D:/FolderName/MyApplication.exe";
//You can set your multiple input param with space seperation
myProcess.StartInfo.Arguments = "1 Muthu";
//If you want to open new window, set false
myProcess.StartInfo.CreateNoWindow = true;
//Start the application
myProcess.Start();
Jaish MathewsPosted Jun 4, 2010, 8:27 AM
You need to run System.Diagnostics.Process.Start(<