>>
Home

>>
All About Me

>>
Books

>>
Events

>>
Links

>>
Photo Gallery

>>
Downloads

>>
Visual Basic .Net

>>
SE IERP

>>
FPU

>>
My Tubes



Login
Register

All content is the property of TimKey.Net unless noted otherwise in the content. All rights reserved




Launch an exe file from vb.net

Posted by on Friday, November 05, 2004 (CST)

Ever want to make a button to execute another application or another exe in your project?

VB.Net makes this a short task with the System.Diagnostics class.  One line of code can get this working for you in a click event or you can setup a sub procedure and just send the path to the exe file.

 

'Sub Procedure

'Just copy and paste this procedure into your code and then just call it

 

Public Sub LoadFile(ByVal Path as String)

     'Launches the fhe file as long as the system has

     'the application to open it

     System.Diagnostics.Process.Start(Path)

End Sub

 

'Button Click

'Just copy and paste the one line below into your Click event and

'change the word Path to the full path to the file you are wanting to launch

 

  System.Diagnostics.Process.Start(Path)

 

 

I hope you find some use for this tip.


Add Your Comment



Tim Key.Net

Here is a test to find out whether your mission in life is complete. If you're alive, it isn't.
--- Richard Bach

 

New Books

  • Enchanters' End Game
    Publishers Weekly
    "Absorbing. Touches all the right Fantasy bases. Warring gods, political intrigues, supernatural creatures, and appealingly human magicians."


  • The Misanthrope and Tartuffe
    Two classic plays translated by a Pulitzer Prize-winning poet into English verse. Introductions by Richard Wilbur.



  • Castle of Wizardry
    This is like Bonanza, or like I Love Lucy. There will be other fantasy series, but there can never be another that's so seminal, that so captures the essence of fantasy. Big Dave and Little Leigh grow their heroes from the ground up, and they grow the best.

  •  

    New Links

  • Kids and Guns
    My Daughter getting shooting lessons from my Dad. She should listen better...

  • QuickVerse Starter 2005
    Free KJV Bible for your PC. This is the best PC Bible software I have found anywhere and believe me I have looked and tested for years.

  • Free Bug Tracking Software
    Get your free version of PR-Tracker

  •  

    New Posts

  • on site visit
    Posted by linda on Friday, November 14, 2008 (CST)

  • ERP 5.2 Return Material Authorisation troubleshooting
    Posted by Noreen on Tuesday, August 12, 2008 (CST)

  • ERP 7.2 Buyers Workbench
    Posted by rcanavan on Wednesday, November 28, 2007 (CST)

  •  

    Most Popular Books
  • Loose That Man And Let Him Go
    FROM THE PUBLISHER
    Never in the history of the church has there been a time when God has so urgently stirred the hearts of men to become all He created them to be and accomplish all He created them to accomplish.


  • Why Do Men Have Nipples? Hundreds of Questions You'd Only Ask a Doctor After Your Third Martini
    Is There a Doctor in the House? You will laugh outloud as you read this book. This is one of my favorite books of all time. Told in a very humorous manner but with all seriousness, you will be enlightened about hundreds of areas of life we have al

  • Silent No More
    “Silent No More,” expounds upon the issues of our day, including judicial tyranny, race relations, poverty, homosexuality, Islam, education, and the right to life. Pastor Parsley provides practical action steps to engage readers and motivate them to act.


  • Home   |  All About Me   |  Books   |  Events   |  Links   |  Photo Gallery   |  Downloads   |  Visual Basic .Net   |  SE IERP   |  FPU   |  My Tubes