Jump to content

Create "permanent" USB icons


Super Fast

Recommended Posts

Download Batch Icon Extractor to your desktop.

Create a new folder called CCleaner on your desktop.

Locate your CCleaner folder & copy CCleaner.exe to the CCleaner folder on the desktop.

_____

 

Drag CCleaner.exe onto Batch Icon Extractor & it will generate an icons folder.

Open the icons folder, & rename CCleaner.exe_I0080_0809 to Icon.

Copy Icon to CCleaner folder on the desktop.

_____

 

Open notepad & save the following as desktop.ini inside the CCleaner folder.

 

[.ShellClassInfo]

IconFile=\CCleaner\Icon.ico

IconIndex=0

 

Right-click both Desktop.ini & Icon.ico & select properties.

Tick the hidden box & ok to hide it.

 

Right-click CCleaner folder & send to your flash drive.

_____

 

* This method should show the icon under XP/Vista/7. 7 needs the 1st 2 lines, & XP needs IconIndex=0.

 

Why not just right-click/properties/customize?

 

- This will work, but if you customize a folder under 7, the icon won't appear under XP, nor will XP work under 7.

- If you use shell32.dll, the icon will be different for XP than it will be under 7, as opposed to this method that ensures they stay the same.

- If you use shell32.dll, the icon will reference C:\Windows\System32\shell32.dll & need to be set to %Systemroot%\System32\shell32.dll etc for it to work on multiple drive letters.

 

If you intend to create other folders, say: Utilities\Cleanup\CCleaner folders, you will need to update the .ini file inside the folder accordingly to:

IconFile=\Utilities\Cleanup\CCleaner\Icon.ico

 

Be sure you create icons or extract the icons you need for each folder. I don't imagine you want them all looking like the CCleaner icon.

 

P.S. In some instances, you may still have to use the right-click/properties/customize/browse to & apply, then edit the desktop.ini file to remove the drive letter & colon so it will reflect the relative path. Example: Change E:\Utilities\Cleanup\CCleaner\Icon.ico to \Utilities\Cleanup\CCleaner\Icon.ico

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.