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.
 

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

Back
Top