Autorun.inf Refuses to Run .exe on pen drive

Ariewok

Honorable
Apr 18, 2016
131
0
10,690
Hi,
I've been experimenting with an autorun.inf file for my flash drive. I have an .exe that displays my contact information, and I want that file to run whenever the flash drive is plugged in. I'm pretty sure that's possible, but correct my if I'm wrong. I can get the icon and label commands to work fine, but the open command refuses to work.

Here's what I have so far, saved in a file titled autorun.inf on my flash drive. The .exe file is properly named as well.

Code:
[autorun]
icon=MyLogo.ico
open=ContatctInfo.exe
label=FlashDrive

Thanks for your help!

 


Oh I saw that article but I guess I skipped over the most important part...

"In Windows 7 it is not possible to use the ACTION command and the OPEN command together with USB flash drives anymore. Microsoft has removed this support for security reasons. These commands are still available for CDs and DVDs in Windows 7, but not for USB sticks. "

Thanks so much, and sorry for wasting your time. My bad!