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. C / C++ / MFC
  4. autorun

autorun

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++comquestionworkspace
2 Posts 2 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.
  • K Offline
    K Offline
    kanetheterrible1
    wrote on last edited by
    #1

    hi all! does anyone know how to enable autorun of a program (.exe ) from an USB drive? autorun.inf as we know works for CD's and not for USB drives, but it's possible to autorun from an USB drive...an example is microtoolz.com....anybody knows how that can be done in the VC++ environment? thanks. Kane:)

    D 1 Reply Last reply
    0
    • K kanetheterrible1

      hi all! does anyone know how to enable autorun of a program (.exe ) from an USB drive? autorun.inf as we know works for CD's and not for USB drives, but it's possible to autorun from an USB drive...an example is microtoolz.com....anybody knows how that can be done in the VC++ environment? thanks. Kane:)

      D Offline
      D Offline
      DaFrawg
      wrote on last edited by
      #2

      If you search @ msdn.microsoft.com for "autorun usb", you'll see that it is possible to associate apps to removable drives for autorun if you're using Autoplay V2 (embedded in WinXP). I guess (!) that PenDrive Autorun associate itself with removable USB drives and if an USB drive is added to the system and XP is polling what application likes to autorun, PenDrive Autorun says 'yes' if autorun.inf is found. So WinXP gives the control to PenDrive Autorun and PenDrive Autorun executes the file specified in autorun.inf. But that is only a guess. If it's true, than it's not possible to trigger an autorun from the USB, so only if PenDrive Autorun (or something like it) is installed on the computer, the trick will work.

      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