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?

link|improve this question
1  
I think autorun is disabled for USB flash drives on Windows 7 – M28 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
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
show 2 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.