Geekpedia Programming Tutorials






Execute A File Or Application

Get your .NET application to open a file using the operating system's file type assignments, just like the file would open when double clicked.

On Friday, May 2nd 2008 at 11:16 PM
By Andrei Pociu (View Profile)
-----   (Rated 0 with 0 votes)
Contextual Ads
More C# Resources
Advertisement
  1. // Will open Microsoft Word 2007 or whichever program you have assigned to handle the DOCX extension
  2. System.Diagnostics.Processes.Start("Gobias Industries Business Plan.docx")
Digg Digg It!     Del.icio.us Del.icio.us     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this code snippet
Comment Current Comments
by Felipe Feber on Tuesday, May 20th 2008 at 08:01 PM

this code had an error...here works with the code
System.Diagnostics.Process.Start("directory and file name");

by Felipe Feber on Tuesday, May 20th 2008 at 08:01 PM

this code had an error...here works with the code
System.Diagnostics.Process.Start("directory and file name");

by Felipe Feber on Tuesday, May 20th 2008 at 08:01 PM

this code had an error...here works with the code
System.Diagnostics.Process.Start("directory and file name");


Comment Comment on this tutorial
Name: Email:
Message:
Comment Related Source Code
There is no related code.

Comment Related Tutorials
There are no related tutorials.

Jobs C# Job Search
My skills include:
Enter a City:

Select a State:


Advanced Search >>
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons