Autorun an executable from a USB key in Windows XP

After much Googling, reading, hacking, downloading applications and generally fiddling about, we finally got a USB key to put up the correct autorun prompt when you put the key in the port. i.e. put the application you want to run at the top, and not list a load of files and folders to open. It is:

In autorun.inf you want:

[autorun]
action=My presentation
icon=icon_file.ico
open=executable_fil.exe

And that seemed to do it. Maybe everyone knows how to do this already and just didn’t tell me, but it definitely didn’t work without the ‘action’ line. Okay, the executable still has to be picked from the list of actions, but it appears at the top so it’s fairly obvious.

Advertisements
This entry was posted in Useful. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s