Results 1 to 4 of 4

Thread: [RESOLVED] Executing another .exe from VB.NET

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    250

    Resolved [RESOLVED] Executing another .exe from VB.NET

    Hi Everyone,

    How do I execute an executable via VB.NET?

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Executing another .exe from VB.NET

    vb Code:
    1. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    2.         Dim sFilenamewithpath As String = "C:\test.exe"
    3.         System.Diagnostics.Process.Start(sFilenamewithpath) 'start the exe
    4.     End Sub
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    250

    Re: Executing another .exe from VB.NET

    works perfectly, thank you!

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Executing another .exe from VB.NET

    OR

    Dim strexe As String
    strexe = "c:\test.exe"
    Shell(strexe)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width