How to run an exe from C#?

Posted: February 5, 2011 in C#
Tags:

In my previous post I talked about how VS external tools , the exes can be called from Visual Studio itself.If I had not figured out this,I seriouly had some plans to write an application which can group all these exes together :).

If you do not know how an external exe can be called from .Net Application,its simple;use the Process class found in the System.Diagnostics namespace.

  
      Process proc = new Process();
      proc.StartInfo.FileName = @"Notepad.exe";
      proc.Start();

Read more about this here http://msdn.microsoft.com/en-us/library/92699yzt(v=VS.100).aspx

Hope this information helps you sometime!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s