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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.