0

This question already has an answer here:

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?

marked as duplicate by Karan, Ƭᴇcʜιᴇ007, Dave, Tog, Dave M Mar 11 '13 at 13:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I think autorun is disabled for USB flash drives on Windows 7 – user21187 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
  • superuser.com/questions/22766/… – 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