USB Drive Autorun
Dustin | Programming & Scripting | January 14th 2009
I have been hunting for a good way to get a USB Flash Drive to autorun when inserted into a computer. The ideal solution would work just as a CD’s autorun (ie work with all versions of Windows and MacOS). Given my time constraint I was only able to locate a solution that works 100% with Windows Vista.
If anyone has a link to the Holy Grail of USB Flash Drive Autorun please comment below :)
Here is what I used
(used it to autorun a Flash Windows Projector file):
Create an Autorun.inf file and place it at the root of your flash drive along with your program files.
[AutoRun] OPEN=YourProgram.exe ICON=YourProgramFileWithIcon.exe ACTION=Message that is displayed LABEL=Drive Label
Here is the link where most the info I used was found.
The trick is to use a USB stick with U3 technology such as the sandisk. It has a second partition which does show up as a CD-ROM so it always autoboots. The folks over at hak.5 use it for their switchblade hack.