Sign in to follow this  
Yratelev

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this