Page is a not externally linkable
- Microsoft
-- (deprecated) Microsoft Windows OS (XP/NT/Vista)
---- Associate Files With Icon


kaled - 3:37 pm on Oct 11, 2010 (gmt 0)


Try the following, however, if .htm and .html are already assigned in the registry, making arbitrary changes may break existing functionality. To avoid this, I would suggest working with the registry directly - see [alanphipps.com...] this should allow to to make additions to existing settings rather than break existing settings.

Also, I don't use notepad++ so the /p switch may not work and I am not certain that .ICO files can be used to specify an icon in this way.

Kaled.


REGEDIT4

[HKEY_CLASSES_ROOT\.htm]
@="HTMLFile"

[HKEY_CLASSES_ROOT\.html]
@="HTMLFile"

[HKEY_CLASSES_ROOT\HTMLFile]
@="HTML File"

[HKEY_CLASSES_ROOT\HTMLfile\DefaultIcon]
@="C:\Extension Ico\HTML.ico"

[HKEY_CLASSES_ROOT\HTMLfile\shell\edit]
@="Edit with Notepad++"

[HKEY_CLASSES_ROOT\HTMLFile\shell\edit\command]
@="C:\Program Files\Notepad++\notepad++.exe %1"

[HKEY_CLASSES_ROOT\HTMLFile\shell\print_nppp]
@="Print using Notepad++"

[HKEY_CLASSES_ROOT\HTMLFile\shell\print_nppp\command]
@="C:\Program Files\Notepad++\notepad++.exe /p %1"


Thread source:: http://www.webmasterworld.com/microsoft_windows_os/4199809.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com