0

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

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by f1 fan
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.