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.

On my portable hard drive I set icons for almost every organized folder. All these icons are located in an Icons folder located on the root directory of the same hard drive.

When I change the drive letter of the hard drive (well I don't, Windows does it automatically sometimes) these icons are lost. So far this hard disk drive is assigned to F:.

While it's not a problem now, it may become a problem if I upgrade my computer or get a new one and the F: drive is already taken up for something else. It's also annoying on networks where F: is mapped to a network drive.

share|improve this question
    
You can change the drive letter assigned to the device when needed. See superuser.com/questions/81286/… for instructions. –  Wayne Johnston Mar 25 '13 at 23:40
    
superuser.com/questions/28115/portable-shortcuts-on-windows answers a similar question. –  Wayne Johnston Mar 25 '13 at 23:45
    
@WayneJohnston changing the drive letter for a CD Drive isn't all to helpful cause they aren't the problem, most of the time i have created .iso backups and run them on virtual drives however it's internal hard drives and network drives which are my problem, your second comment isn't useful either cause these are normal folders, not to mention if it wasn't because i had so many folders with icons set i would have set my Hard Drive to R (cause I'd named her Roll) and if i get more hard drives i would assign them in the same fashion –  Memor-X Mar 26 '13 at 2:48
    
@WayneJohnston also, i know the question in your first comment can be applied to hard drives as well however as i said in my question, windows does it automatically sometimes, i have an 80GB iPod with a smashed screen i use as a hard drive and i named her Emilita, so i have the E Directory free for her but she isn't connected all the time as she does small data transfers between other devices so when she isn't connected windows goes to change Roll from F: to E: –  Memor-X Mar 26 '13 at 2:51
    
i should also note that the reason why i would assign drive letters based off the hard drive's name is because the icons don't work if the drive letter is changed, if i could have the icons work all the time regardless of the drive letter then i wouldn't need to enforce it –  Memor-X Mar 26 '13 at 2:52

1 Answer 1

up vote 0 down vote accepted

I found out where I can do it, though I've only done it on Windows XP. It'll probably work on any other version of Windows after that.

You first need to show both Hidden Files and System Protected Files. When you assign an icon to a folder a desktop.ini file in that folder, under [.ShellClassInfo] you will have a key called IconFile. Just change the path of the icon so instead of having something like F:\Icons\Anime\Code Geass\Nunnally\Nunnally1.ico or %SystemDrive%\Aura\Icons\Anime\Akiza.ico, you have a path that's relative to that folder, like putting ..\ until you get back to the root directory and then putting in the path from there. That way you're not using driver letter or system variables which may be different between computers.

share|improve this answer

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.