argument list for system.diagnostics.process

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: May 2007
Posts: 266
Reputation: quintoncoert is an unknown quantity at this point 
Solved Threads: 3
quintoncoert quintoncoert is offline Offline
Posting Whiz in Training

argument list for system.diagnostics.process

 
0
  #1
Jul 5th, 2007
I am using the system.diagnostics.process command to run a program. the program receives a number of parameters.

can someone please tell me if the process command of c# can receive more than one argument? and how do you specify them?

when one runs this command from the command-line you seperate the arguments by a space and two dashes.
e.g. example.exe --cpulist --loginname=Admin --loginpassword=true
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 275
Reputation: f1 fan is an unknown quantity at this point 
Solved Threads: 11
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: argument list for system.diagnostics.process

 
0
  #2
Jul 5th, 2007
the arguments are an array so you add the whole argument into the array.

eg. p1.arguments.insert("loginname=Admin",0);
p1.arguments.insert("loginpassword=true",1);
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum


Views: 5775 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC