How to change default USB pen drive Icon


Are you bored of usual USB flash drive icon? Well, you can easily give makeover to icon of USB drive and use any image as its icon. Whole procedure involves 3 lines of simple code and new icon image that you want to use instead of default USB flash drive icon.


Change to new USB drive icon

1. Goto Start, Run. Then type Notepad to open Notepad application on the computer. Now type following lines in the notepad file.


2. Save the notepad file as autorun.inf (above AnyName is label showing at USB icon and icon.ico is the name of the icon file).

3. You need icon file in ICO format. You can download any icon in ICO format from website. Alternatively, you can use convert any PNG image to ICO format and use it as icon.

4. After you get the Icon file, rename it as icon.

5. Plug your USB drive, copy both icon and autorun.inf files to it.

6. Safely Unplug and then plug back USB drive to see new icon.



  1. Sajid Akbar says

    autorun.inf is detected as virus by some antivirus programs

    is there any other way to assign an icon to the flash drive without using autorun.inf

    kindly help

  2. thanxxxxxxxxxxxx
    its realyworks

  3. thnx,
    really its very nice trick…..

  4. Great! It’s Compatible With Microsoft (R) Windows 7 & Microsoft (R) Windows XP.

  5. thnx a lot……

  6. it not work in window 2007.
    YOU have another way…….

  7. hi. thanks!

    • hi.
      Are you know the right way to change the icon of the pen drive, in window 2007.
      if you know please send me full syntax.

  8. don’t work here.. :(

Add a Comment