In Windows you can set a custom image for folder icons. This is pretty cool, as it can help you to quickly and easily identify folders without reading the list of names.

However, the way Windows stores information about which image file to use as the icon is by writing a hidden file called desktop.ini in the folder in question. Inside this file is a line that identifies the path to the image file, but by default it is an absolute path which includes the drive letter. Thus, if you put an image inside a folder on your USB stick or portable hard drive, and set it as the folder’s icon, it’s hit-and-miss as to whether it’s visible when you plug the device into another computer. Even plugging another storage device in before the one with custom icons will likely cause the icons to not be displayed.

To fix this:

  1. ensure the image you want to use for a folder is immediately inside that folder;
  2. open that desktop.ini file and find the line that identifies the image’s location;
  3. remove everything between the = and the image name, but leave the ,0 (might not be 0) at the end.

You should be left with something like IconResource=mahouka.ico,0 which will ensure the image displays on any Windows computer you plug into that supports custom folder icons! Yay!