Trying to programmatically execute command line utils with switches

M

Mike W

I'm trying to programmatically run msinfo32.exe /? with the following line
of code but it is not taking the switch:

System.Diagnostics.Process.Start("c:\program files\common files\Microsoft
Shared\MSInfo\msinfo32.exe /?")

I have a couple other command line tools with switches that I would like to
programmatically execute as well. I'm thinking there is another way to do
this but am coming up short. Any help is greatly appreciated.

Thanks,
-m
 
R

Ray Cassick \(Home\)

I believe one of the overloaded start methods has a special argument for the
command line switches like:

Process.Start("c:\program files\common files\Microsoft
Shared\MSInfo\msinfo32.exe", "/?")

Try that
 
M

Mike W

that worked.
thanks!
-m

Ray Cassick (Home) said:
I believe one of the overloaded start methods has a special argument for
the command line switches like:

Process.Start("c:\program files\common files\Microsoft
Shared\MSInfo\msinfo32.exe", "/?")

Try that
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top