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!
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
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
Try putting quotes around the folder name with spaces.
.\Documents\Pictures\"Icone di supporto"\usb.ico
Ed
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!
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)
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
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.
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
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.
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
...