-2

I want to run an external application and pass some parameters to it.

How may i do this in .net framework?

MahmoodP
  • 9
  • 1

1 Answers1

2

Try it with the Process class:

Process process = new Process();
process.StartInfo.FileName = "<Folder>/<filename>.exe";
process.StartInfo.Arguments = "your Parameters";
process.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
process.Start();
process.WaitForExit();
int code = process.ExitCode;
Chris Mantle
  • 6,595
  • 3
  • 34
  • 48
Obl Tobl
  • 5,604
  • 8
  • 41
  • 65