Make Custom Folder Icons Permanent

Discussion in 'Windows 10' started by cdavisdeco, Sep 8, 2016.

Thread Status:
Not open for further replies.
  1. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    330
    63
    10
    #1 cdavisdeco, Sep 8, 2016
    Last edited: Sep 11, 2016
  2. PhaseDoubt

    PhaseDoubt MDL Expert

    Dec 24, 2011
    1,443
    275
    60
    I get the same thing in Windows 10. In 7 the custom icon image follows the copied folder. Gotta love Windows 10.
     
  3. EXO56

    EXO56 MDL Member

    Mar 22, 2013
    183
    250
    10
  4. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,964
    907
    60
    Yeah I was thinking the same, desktop.ini probably has the full path included...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    330
    63
    10
    #7 cdavisdeco, Sep 9, 2016
    Last edited by a moderator: Apr 20, 2017
    (OP)
  6. stashekmajcherc

    stashekmajcherc MDL Novice

    Sep 3, 2016
    34
    2
    0
    Just replace imageres.dll ? You can create your own dll. file and than replace?
     
  7. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120
    #9 T-S, Sep 9, 2016
    Last edited: Sep 9, 2016
    To use an icon file and keep the customization path agnostic, just use the obvious way:

    Relative paths!

    If you have something like C:\test folder\icon\sample.ico windows will use that absolute path that obviusly becomes invalid when you move the folder on say D:\

    hence just use .\icon\sample.ico, editing the relevant desktop.ini, then you can move the folder wherever you like and the icon will be still visible.

    ---------------------------------------------------------------------------------------------------------------------------------------


    Another way is to point to a system's resource dll, like imageres.dll

    In that case your icon will be always visible even if you use the absolute path

    C:\windows\system32\imageres.dll ,as long as your windows is installed on C:\

    You can improve that replacing C:\windows\ with %windir%\ or %systemdrive%\windows\


    This way even if your windows is installed on D: or E: your path will be still valid
     
  8. nipponico

    nipponico MDL Novice

    Nov 18, 2015
    13
    4
    0
    I cannot create a custom folder icon for the system directory, C:\Windows. Can you?
     
  9. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120
    No, seems that even placing the desktop.ini file there the icon is ignored
     
  10. Hearsepilot

    Hearsepilot MDL Novice

    Aug 31, 2009
    36
    4
    0
    Yes you can
     
  11. nipponico

    nipponico MDL Novice

    Nov 18, 2015
    13
    4
    0
    Please explain how. The desktop.ini trick doesn't work...
     
  12. Hearsepilot

    Hearsepilot MDL Novice

    Aug 31, 2009
    36
    4
    0
    In my case i dropped the icon i needed in the Windows Folder, i created a Desktop.ini file by copying a known functional one albeit with the path to my chosen Icon, i then set the attributes of the Windows folder using a CMD line run with admin priv's

    attrib +r "C:\Windows"

    I then set the icon and the desktop file to hidden. F5 to refresh should do it. I also have icons on the Program Files folders using the same technique
     
  13. nipponico

    nipponico MDL Novice

    Nov 18, 2015
    13
    4
    0
    It functions! The trick is the read only attrib on the directory. Why!?
     
  14. Hearsepilot

    Hearsepilot MDL Novice

    Aug 31, 2009
    36
    4
    0
    Beats me dude, but work it does. I have a root directory full of custom folders now.
     
  15. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120

    I thought it was something like that, given trough the normal way even on a parallel installation is impossible to set a custom icon.
     
  16. Hearsepilot

    Hearsepilot MDL Novice

    Aug 31, 2009
    36
    4
    0
    I suspect its to do with security
     
  17. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    330
    63
    10
    #19 cdavisdeco, Sep 11, 2016
    Last edited: Sep 11, 2016
    (OP)
    Tried this. Works partially. It means when moving a folder it's able to retain the custom icon. But copying doesn't. Even with moving it doesn't work when there is a folder with same name in the destination.
     
  18. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    330
    63
    10
    #20 cdavisdeco, Sep 11, 2016
    Last edited: Sep 11, 2016
    (OP)
    Relative paths! method doesn't work at all.

    Can't open imageres.dll via Notepad. It becomes "Not Responding"