944,152 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 9360
  • C# RSS
Jul 5th, 2007
0

argument list for system.diagnostics.process

Expand Post »
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
Similar Threads
Reputation Points: 160
Solved Threads: 3
Posting Whiz in Training
quintoncoert is offline Offline
266 posts
since May 2007
Jul 5th, 2007
0

Re: argument list for system.diagnostics.process

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);
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: search in datagrid
Next Thread in C# Forum Timeline: procedures and functions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC