I have a USB flash drive for which I want to use a custom icon. My autorun.inf looks like this:

Label=TrueCrypt Traveler Disk
Action=Start TrueCrypt Background Task
shell\start=Start TrueCrypt Background Task
shell\dismount=Dismount all TrueCrypt volumes
shell\dismount\command=TrueCrypt\Windows\TrueCrypt.exe /q /d

...but the icon doesn't appear, and nothing happens when I attach the drive - no dialog box, etc. I can still access it via "My Computer", but it doesn't have the icon. I've already set all options in the "AutoPlay" properties tab to "Prompt me each time to choose an action", but that doesn't fix anything.

I know this question has (probably) already been asked before, but the search feature gave me nothing. HOWEVER, this question is more centered on getting the icon working than getting auto-exec to work.

I'm running Windows XP Home Edition on this computer, but I will use it on Windows XP Professional and Windows 8 as well.

  • 1
    This might be obvious, but have you checked that the icon name is spelled correctly, and to include the full path to it? With the current configuration, the icon should be in the main USB folder, is it there? – Sekhemty May 12 '13 at 18:59
  • @Sekhemty Yep - it's in the correct directory - Ubuntu recognizes it... – JamesTheAwesomeDude May 14 '13 at 2:38
  • Please explain it: how Ubuntu recognizes it? These autorun.inf settings, AFAIK, will only work on Windows. Do you mean that you can open the .ico file with an image viewer? – Sekhemty May 14 '13 at 21:40
  • @Sekhemty Ya, Ubuntu is designed to be as user-friendly as possible, so the developers added support for autorun.inf icons. I plugged it into the Ubuntu machine to perform a sanity check - making sure the icon is in the correct folder, double-checking autorun.inf's syntax, etc.. – JamesTheAwesomeDude May 14 '13 at 23:41

Try setting the system attribute of the autorun.inf file. You'll need to set the system attribute from the commandline using something like:

attrib +S e:\autorun.inf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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