I don’t know why, but today, when I just connected my USB to my computer, I couldn’t stand the usual image/icon used as default by Microsoft Windows.
After that I decided to convert some image found online to replace the USB icon.
To make this possible you just need :
- to create a simple file called “autorun.inf” ;
- and obviously an image that you want to use to replace the default icon.
These two files need to be put in the root of your USB.
Tip: If it’s annoying the view of these two files, after you are happy about the result, you can just hide them by changing their attribute in hidden/not visible.
The file autorun.inf can be created by just using a text editor which contains these lines:
[autorun]
icon = name of icon to use
After “icon = ” you can just type the name of the icon that you want to use. Or in the case the image is not in the root, you can just type the correct path.
Example:
icon = iconname.ico
icon = folder\subdirectory\..\iconname.ico
The typical size of the icon is 16×16 pixel, 32×32 pixel and 64×64 pixel all could be with 4, 8 o 32 bit of colors.
You can use a software called IconFX to create your personal icon. It’s a shareware program so you can use it for 15 times, after this the save option will be disabled.
Instead, if you have Photoshop you can save your image as “.ico” after installing a simple plugin open source called ICO (Windows Icon) Format. Just put the file “ICOFormat.8bi” you downloaded in the folder C:\Program Files\Adobe Photoshop XX\Plug-ins\File Formats\ . Be aware that the path written may be different with yours because of different OS and version of Photoshop.
The simplest method that is free and quicker than creating an image yourself is to convert an image (that you have or you find on internet) to “.ico” by using a free online service as Bradicon!. It’s really simple. You just upload the image you want to use and wait for few seconds to let the service finishes to upload and converts the image for you, then you can just download it and use it.
NB: After writing all these things in the file autorun.inf be sure to save it as “autorun.inf” and not as “autorun.inf.txt”
Then you just need to put the files autorun.inf and nameimage.ico in the root of your USB and from the next time you reconnect it to your computer, it will be displayed with the icon you just specified.
Further consideration:
The file autorun.inf could include other commands that could be useful.
- label = name of your devices
The command label is used to specify the name which you want to be displayed for your removable device.
- open = name_of_application.exe
The command open will run the specified executable application. It could be .exe, .msi, .bat
The command shellexecute will open the specified file that could be a document, an internet page, a video, a music, etc… Be sure that in the system where you let it open these files, the OS has the appropriate software to open these files.
Sources: