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. Launch myprogram with another at same time

Launch myprogram with another at same time

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 4 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.
  • C Offline
    C Offline
    Cory Kimble
    wrote on last edited by
    #1

    Is there a way to launch my program at the same time when I open, lets say, notes.exe?

    S C 2 Replies Last reply
    0
    • C Cory Kimble

      Is there a way to launch my program at the same time when I open, lets say, notes.exe?

      S Offline
      S Offline
      sathesh pandian
      wrote on last edited by
      #2

      hi, you can use process.start("notes.exe")

      All The Best Sathesh Pandian

      1 Reply Last reply
      0
      • C Cory Kimble

        Is there a way to launch my program at the same time when I open, lets say, notes.exe?

        C Offline
        C Offline
        Craster
        wrote on last edited by
        #3

        There's no way to hook into the launch of notes.exe to know that it has launched. You have two options: 1) Use a batch file to launch notes.exe that will also launch your app. 2) Have a boostrap app permanently running (at startup, or as a service) that scans the running processes, then launches your app when it sees notes.exe is running.

        B 1 Reply Last reply
        0
        • C Craster

          There's no way to hook into the launch of notes.exe to know that it has launched. You have two options: 1) Use a batch file to launch notes.exe that will also launch your app. 2) Have a boostrap app permanently running (at startup, or as a service) that scans the running processes, then launches your app when it sees notes.exe is running.

          B Offline
          B Offline
          Bogdan Apostol
          wrote on last edited by
          #4

          Yes, there is a way. You may not like it though! :laugh: You can patch notes.exe, such as to modify the entrypoint to a different location, which, obviously, launches your application and then forwards the execution to the original entrypoint of notes.exe! That's how some viruses work, isn't it? ;P Cheers,

          Bornish ESRI Developer Network Compilers demystified - Function pointers in Visual Basic 6.0 Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.

          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