how to execute commands in process?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey guys.
How cam I interface with the environment in C#. I want to execute commands
in a (separate) process, just like java Runtime.exec(string command) does.

Thanks in advance,
 
You can use the System.Diagnostics.Process class to accomplish this. There
are some detailed examples of how to use it in the MSDN. Just do a search
for "Process Class" or "System.Diagnostics.Process" and you will find it.

Good Luck.
 
Back
Top