How to run an exe from C#?

Posted: February 5, 2011 in C#

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

Read more about this here

Hope this information helps you sometime!

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s