954,224 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

argument list for system.diagnostics.process

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

quintoncoert
Posting Whiz in Training
266 posts since May 2007
Reputation Points: 160
Solved Threads: 3
 

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

f1 fan
Posting Whiz in Training
279 posts since Jan 2006
Reputation Points: 26
Solved Threads: 11
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You