X
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 33 people, some anonymous, worked to edit and improve it over time.
This article has been viewed 358,139 times.
Learn more...
Does your USB flash drive have a boring, generic icon that you would like to change? Do you want the new icon to show on whatever computer you use, so registry editing is not an option? Using an Autorun file is your solution.
Steps
-
1Create your icon, or find one online. A good size is 34 pixels square.
-
2Open Notepad to create your Autorun file.Advertisement
-
3Type [AutoRun] in the first line.
-
4Name your drive in the second line: label=Name
-
5Specify your icon in the third line: ICON=your-icon-file.ico. If you wanted to call your drive "My USB Drive" with an icon named "myusbdrive.ico"
-
6Click File, then Save As. Change the file type to "All" and name it AUTORUN.inf
-
7Your autorun.inf file would look like this:
- [AutoRun]
label=My USB Drive
ICON=myusbdrive.ico
- [AutoRun]
-
8Keep in mind that the ICON name should match the name of the icon you wish to use.
-
9Note:
- Depending on the label you choose, and the location of your icon file, you may need to wrap the label and folder names in quotes (") to handle long filenames.
- It has been reported that on some systems your ".INF" file extension may need to be capitalized in order to work.
-
10Ensure that both your autorun.inf and any .ico files are in the ROOT of your removable drive, instead of a folder, unless you have specified the correct folder for the icon in your .inf file.
-
11Highlight both files. Right click and select properties, set files to "hidden" to hide files from view.
Advertisement
Community Q&A
-
QuestionDoes my image have to be a .inf file?Community AnswerYour image cannot be a .inf file. Your image is saved as .ico.
-
QuestionIs there any way to keep this icon even after the USB is formatted?ChemGeniusCommunity AnswerYes. You would have to temporarily move the autorun file and icon to another drive or computer before formatting.
-
QuestionDoes this really work?Community AnswerYes, it does. Make sure the icon file you want to use is in the .ico file format and in the autorun.inf file; also, make sure you put "ICON" in all caps. Lastly, make sure everything is spelled correctly and there are no typos.
Advertisement
Warnings
- This Autorun.inf file will not work on a drive where Autorun mode is turned off or where an antivirus program can rename or remove it (ex: Autorun.inf.ren).⧼thumbs_response⧽
- Ensure that the icon is saved in the root of the drive, with the autorun file.⧼thumbs_response⧽
- Make sure you save the autorun file as .inf instead of the default .txt.⧼thumbs_response⧽
- This does not work on floppy drives, because they have no Autorun feature.⧼thumbs_response⧽
Advertisement
Things You'll Need
- A removable drive
- An icon for your drive
- A text editor, such as Notepad/Notepad++
About This Article
Advertisement