Shelling out commands

  • Thread starter Thread starter A
  • Start date Start date
A

A

Does anyone have any code for shelling out a command to start up an
executable with command line arguments?

I am simply trying to start a MSDE install by calling its Setup.exe.

Thanks
 
Check out the Process class. There are several ways to
code it. This launches NotePad with a particular text
file:

Process proc = new Process();
ProcessStartInfo info = new ProcessStartInfo
("NotePad.exe", @"C:\tfile.txt");
proc.StartInfo = info;
proc.Start();
 
Back
Top