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. Windows Forms
  4. Auto pop-up a program when USB device connected

Auto pop-up a program when USB device connected

Scheduled Pinned Locked Moved Windows Forms
c++helptutorialquestion
4 Posts 3 Posters 17 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.
  • S Offline
    S Offline
    sowhat_82
    wrote on last edited by
    #1

    Hi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Alvin

    D B 2 Replies Last reply
    0
    • S sowhat_82

      Hi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Alvin

      D Offline
      D Offline
      Dumb Programmer
      wrote on last edited by
      #2

      I think you are using Windows environment. Assuming the same, this is how Windows OS works. There is a service called Plug And Play (see services.msc) and you will see this service as running (generally) on computer systems. This is the service which keeps the track of any device plugged in/out from the PC. Either you create a windows service which checks these ports or you hook your application with system service to get the notification about any device added/removed from the system and accordingly execute the next steps. Let me know if you need any further help on this.

      B 1 Reply Last reply
      0
      • S sowhat_82

        Hi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Alvin

        B Offline
        B Offline
        B S O D
        wrote on last edited by
        #3

        You are looking for "AutoPlay". Found in Microsoft Windows XP Inside Out 2nd edition. Book confusing suggest search feature at microsoft site.

        BSOD lost C: and no recovery disks. No restore program to access D: Retired Ron

        1 Reply Last reply
        0
        • D Dumb Programmer

          I think you are using Windows environment. Assuming the same, this is how Windows OS works. There is a service called Plug And Play (see services.msc) and you will see this service as running (generally) on computer systems. This is the service which keeps the track of any device plugged in/out from the PC. Either you create a windows service which checks these ports or you hook your application with system service to get the notification about any device added/removed from the system and accordingly execute the next steps. Let me know if you need any further help on this.

          B Offline
          B Offline
          B S O D
          wrote on last edited by
          #4

          I have Windows XP Home. I have an external Buffalo hard disk partitioned. When I "safely remove" the drives 2 partitions remain in Explorer and Defrag sees them too. Other than the icons just being there I think they are messing up my being able to get Microsoft Updates even though I have a genuine Windows copy installed on my 2002 Hewelett Packard Pavilion 762n. Any idea on how to fix this? Thanks

          BSOD lost C: and no recovery disks. No restore program to access D: Retired Ron

          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