"David4321" <> wrote in message
news

...
>
> 1) How can I change the default icons for file types in the registry?
>
> I added the key "DefaultIcon" to several file types as listed in
> HKEY_CLASSES_ROOT and set the data to the full file path of the icon -
> I'd have thought that would work. I've restarted, and it did not.
>
> Where is the correct location & method?
>
That's the correct method. You add the 'DefaultIcon' key at the location
under HKEY_CLASSES_ROOT referenced by the value of the default key of
HKEY_CLASSES_ROOT\<<particular extension>>
The value of the its default key is the icon you want eg
C:\Windows\System32\SHELL32.dll,24
to get 'icon 24' in the shell32.dll file.
> 2) Also: (once I get the correct location & make the edits) How can I
> create a registry file that will add the specified changes to an
> existing registry when clicked? Not save the entire registry, and
> replace it, just add the specified keys & data to install these icon
> changes. This should be at least good as a backup, for editing a new or
> reinstalled OS, and ideally (if possible) a file that can perform a
> smart operation by substituting or getting around the current system's
> user folder name.
>
> Thanks
>
As Gene E Bloch suggested, once you've got the 'DefaultIcon' key in the
correct position, you can right-click it within regedit and choose 'Export'
to form a .reg file.
--
Jon