Shelling out commands

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
 
C

Charlie Williams

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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top