Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting another app AND sending it Arguments 2

Status
Not open for further replies.

Acidon

Programmer
May 1, 2004
21
Hey all. Me again, still at it and going good. I know how to start other applications from within C#, that's no problem.

What I don't know is how to pass arguments to said application at the same time. Any insight, suggestions, flames or other interesting comments?

As always, much appreciated.

Acidon
 
Process p = new Process();

p.StartInfo.Arguments = "-s -q -t";
 
Code:
string exeName = "cmd.exe";
string switches = "/k dir *.*"
System.Diagnostics.Process.Start(exeName, switches);


mr s. <;)

 
Thanks guys, as always, you're extremely helpful. Will give those a shot a bit later. :)

Acidon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top