Jump to content
  • Advertisement
Sign in to follow this  
Yratelev

[.net] How do I run an external application on c#?

This topic is 4992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, simple question: How do I start running another application from my own, eg notepad? public static void main() { SomethingGoesHere.Run("C:\\windows\\system32\\notepad.exe"); } Cheers Yratelev

Share this post


Link to post
Share on other sites
Advertisement
Try:

System.Diagnostics.Process.Start("C:\\windows\\system32\\notepad.exe");

I wouldn't recommend hard-coding the path, however.

Share this post


Link to post
Share on other sites
I would also look at digging deaper into that class, as they have added lots of functions into it, for example hiding the command window and the adding of parameters to the process that you are starting.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!