You are here

Autorun.ini syntax - Customizing my USB drive icon...

11 posts / 0 new
Last post
michele.bartole...
Offline
Last seen: 4 years 1 week ago
Joined: 2011-12-11 16:44
Autorun.ini syntax - Customizing my USB drive icon...

Dear Users,

I'd like my USB drive to appear with an icon I stored in the following path: Documents/Pictures/Icone di supporto/usb.ico, but it seems that I can't reach the correct syntax for Desktop.ini.

My attempt:


[.ShellClassInfo]
IconFile=.\Documents\Pictures\Icone di supporto\usb.ico
IconIndex=0

I don't know, the icon remains the default one.
Maybe a matter of attributes (hidden/system folder or anything similar?)

Thank you for your help!

richo
richo's picture
Offline
Last seen: 1 week 6 days ago
Joined: 2007-01-31 22:03
RE: Desktop.ini syntax - Customizing my USB drive icon...

The drive icon is set using autorun.inf, not desktop.ini (desktop.ini only seems to work for folders)

Example:
Autorun.inf
[Autorun]
Icon=.\Documents\Pictures\Icone di supporto\usb.ico

michele.bartole...
Offline
Last seen: 4 years 1 week ago
Joined: 2011-12-11 16:44
Icon problem...

Thank you richo.

Still I have the problem, though...

I set autorun.inf as follow:
[Autorun]
Icon=.\Documents\Pictures\Icone di supporto\usb.ico
Label=Michele_BS

But no proper icon; only the default one, for the unit Michele_BS:

http://s8.postimg.org/hjb3lvhr9/Icon_Problem.jpg

Ed_P
Offline
Last seen: 6 years 1 month ago
Joined: 2007-02-19 09:09
Folder name has blanks/spaces in it

Try putting quotes around the folder name with spaces.

.\Documents\Pictures\"Icone di supporto"\usb.ico

Ed

John T. Haller
John T. Haller's picture
Online
Last seen: 11 min 5 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Whole Path

I'm not sure, but the quotes may need to be around the whole path. And you don't need the leading .\ so either:

Icon="Documents\Pictures\Icone di supporto\usb.ico"

or

Icon=Documents\Pictures\Icone di supporto\usb.ico

should work.

Sometimes, the impossible can become possible, if you're awesome!

richo
richo's picture
Offline
Last seen: 1 week 6 days ago
Joined: 2007-01-31 22:03
RE: Icon problem...

Make sure that you either replug the device or change the volume label stored on the drive itself (in drive properties).

Before and After image (exact same path as you've used [it works], what Ed and John said is also true, though it is best to go with either no quotes or quote the whole path]): http://s11.postimg.org/fhq1wgl8j/iconproblem.png

Note: Sometimes the AutoPlay settings can interfere, though so far I've only encountered that with UltraISO's ISODrive (Virtual CD/DVD Emulator)

Ed_P
Offline
Last seen: 6 years 1 month ago
Joined: 2007-02-19 09:09
Yes and no

The whole path will work also. Not sure it will work if you include the file name also.

Try: Icon="Documents\Pictures\Icone di supporto"\usb.ico

Ed

michele.bartole...
Offline
Last seen: 4 years 1 week ago
Joined: 2011-12-11 16:44
Thank you.

Thank you for all your replies and support.

I made several attempts yesterday, following all of your suggestions, but with no success.

Then I changed computer and tried again. In the end, I restored the default path for the drive icon (.\PortableApps\PortableApps.com\App\Graphics), moving there the customized icon itself, and it worked. So, I tried again to move back the icon to my "Documents\Pictures\Icone di supporto" path, changed the path in Autorun.inf and, unexplainably, now it works. On this computer, at least: I'm on an Internet Point.

http://s24.postimg.org/43no0gf6t/Icon_01.jpg

Soon I will return to my computer, to verify if the problem is definitively solved also at home... I will keep you update.

richo
richo's picture
Offline
Last seen: 1 week 6 days ago
Joined: 2007-01-31 22:03
RE: Desktop.ini syntax - Customizing my USB drive icon...

Hmm... I'm only guessing here, but maybe autorun.inf processing has been disabled on your home computer.
Try giving your DATA (D:) drive an icon. If it doesn't work on that drive, the links below should help you re-enable it.

The following link is an article on Microsoft's Support site about enabling and disabling autorun.inf processing:
http://support.microsoft.com/en-us/kb/967715

And here is the same article in Italian:
http://support.microsoft.com/it-it/kb/967715

michele.bartole...
Offline
Last seen: 4 years 1 week ago
Joined: 2011-12-11 16:44
Thank you.

Richo,

you guessed right. I tried with another computer, and saw correctly the customized icon; in the end, I returned to the first early one, and noticed that the icon is wrong, there. So, it's a problem of the Windows 8 installed there.

I will try to change the Autorun settings...

I'll inform you, then, about the results.

michele.bartole...
Offline
Last seen: 4 years 1 week ago
Joined: 2011-12-11 16:44
Solved!

I solved (hopefully)...!

http://s17.postimg.org/efbxbbjy7/Icon.jpg

But really I can't understand why I couldn's see the customized icon, before: the Autorun settings were correct... Anyway, I changed some options, then returned to the original ones, as following:

http://s15.postimg.org/irkn87pij/Icon_02.jpg

...

Log in or register to post comments