Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Launching External Exe File

Launching External Exe File

Scheduled Pinned Locked Moved Visual Basic
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Desmond
    wrote on last edited by
    #1

    May I know how to launch an external exe file from my application. Just like launching an external Word Document from application. Besides that, any code that can be used to prevent an application that being launched more than one time. please help. thanx in advance.

    N V 2 Replies Last reply
    0
    • D Desmond

      May I know how to launch an external exe file from my application. Just like launching an external Word Document from application. Besides that, any code that can be used to prevent an application that being launched more than one time. please help. thanx in advance.

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Desmond wrote: May I know how to launch an external exe file from my application. Use the Shell command. There are ways to check to see if an instance of a Word or Excel object is already in existence such as GetObject. Hope this helps. :) Nick Parker
      May your glass be ever full. May the roof over your head be always strong. And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing


      1 Reply Last reply
      0
      • D Desmond

        May I know how to launch an external exe file from my application. Just like launching an external Word Document from application. Besides that, any code that can be used to prevent an application that being launched more than one time. please help. thanx in advance.

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Hi, You may use Process.Start (from System.Diagnostics.Process). That provides granular control over the process you are starting. Perhaps the following URL should open MSDN Documentation too: ms-help://MS.NETFrameworkSDK/cpref/html/frlrfsystemdiagnosticsprocessclassstarttopic.htm process.Start("http://www.codeproject.com") where process is an object of Process opens the default browser and navigates to codeproject.com While shell might still execute system commands, you might not be able to control execution of those programs to the level that Process allows you to do so. Deepak Kumar Vasudevan http://deepak.portland.co.uk/

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups