0

I have a Kingston DataTraveler USB flash drive. To access the encrypted partition, I have to launch the DTVP_Launcher.exe application in the root directory of the unencrypted, readonly partition.

There's an autorun.inf file that would launch the program, but running programs on USB is disabled by a group policy.

On the Mac there is MarcoPolo that elegantly solves the same problem. AlternativesTo lists only programs to change network settings, but AFAICT nothing that can be triggered by an USB event.

Is there a way with Windows to launch a specific application automatically whenever I plug in a given USB stick?

pesche
  • 390
  • 2
  • 10
  • 1
    I think autorun is disabled for USB flash drives on Windows 7 –  Feb 11 '11 at 20:37
  • @m28 I know that autorun is no option and a security risk. I envision a background program that acts only on the connection of a specific USB drive, not any drive. – pesche Feb 11 '11 at 20:44
  • http://superuser.com/questions/22766/automatically-copy-files-to-usb-drive-when-connected/133839#133839 – Zoredache Feb 11 '11 at 20:48
  • Writing a script isn't particularly hard, but that would defeat the purpose of having autorun disabled if it autoruns something. You'd have to verify the EXE using something like MD5, which is a bit harder. – digitxp Feb 11 '11 at 21:21
  • @Zoredache Couldn't find any event in the EventViewer for an USB insertion. Is this *Portable Device Enumerator Service* mentioned in your link specific for Windows 7 (I'm stuck with Vista)? – pesche Feb 15 '11 at 11:35
  • @digitxp Writing a script shouldn't be too hard indeed, maybe even with MD5. But how would you trigger the execution of the script? Or would you poll every few seconds? – pesche Feb 15 '11 at 11:37
  • Looking from my research, the [PortableApps Autoplay](http://portableapps.com/node/13770?page=1) one, waits for an event, so there has to be some way... – digitxp Feb 15 '11 at 12:40

0 Answers0