Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I insert my USB Flash Drive into my computer, I always get this little autostart popup:

autostart

I was wondering, how to add elements to that list using the autorun.inf file? I know it's possible, because I've seen some programs do that before.

What I tried and didn't work:

[autorun]
label=DJDavid98
open=.\GoogleChromePortable\GoogleChromePortable.exe
action=Google Chrome
share|improve this question
    
Have a look at this instructable How to make an Autorun.inf File –  Darius Mar 4 '13 at 20:20
    
@Darius Using that exact information, the option doesn't get added. –  DJDavid98 Mar 4 '13 at 20:32

2 Answers 2

up vote 1 down vote accepted

Looks like AutoRun has been completely disabled in all Microsoft OSes in 2009 through a security update: KB971029

If you've installed this update by letting Windows Update run automatically, that'd be the source of your issue why it doesn't "just work".

share|improve this answer

You can add a single item, like a setup program, but not multiple items. Microsoft has disabled autorun.inf files for USB drives completely in Windows 7, but as you're using XP, that shouldn't be a problem to you. A little example (make sure to save this file as autorun.inf, not autorun.inf.txt):

[autorun]
open=ProgramToOpen.exe
label=DJDavid
shellexecute=somefile.txt
shellexecute=http://example.com
action=The list name's item

All are optional, but you may only use one of each, and I recommend you to choose for open or shellexecute. So copy-pasting this code won't work, as there are 2 shellexecutes. Open is for a executable, and shellexecute is for a file/url.

share|improve this answer
    
Please see my edit. –  DJDavid98 Mar 4 '13 at 20:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.