ここでの問題は、(Webブラウザーではなく)すべてのHTMLファイルを開くデフォルトのプログラムとしてメモ帳を関連付ける場合を除き、ファイルの関連付けではありません。
代わりにこの方法をお勧めします:
1.
以下に示すこれら2つのレジストリキーのサブキーとして、プログラムの実行可能名(notepad.exe)を入力します。
[HKEY_CLASSES_ROOT\.htm\OpenWithList\notepad.exe]
[HKEY_CLASSES_ROOT\.html\OpenWithList\notepad.exe]
2.
ここに「編集」サブキーを追加します。
[HKEY_CLASSES_ROOT\Applications\notepad.exe]
[HKEY_CLASSES_ROOT\Applications\notepad.exe\shell]
[HKEY_CLASSES_ROOT\Applications\notepad.exe\shell\edit]
[HKEY_CLASSES_ROOT\Applications\notepad.exe\shell\edit\command]
Default = C:\WINDOWS\notepad.exe "%1"
3.
デフォルトのエディターを変更するには、このレジストリキーの「Default」エントリを、使用するエディターのコマンドラインに置き換えます。
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML Editor]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML Editor\shell]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML Editor\shell\edit]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML Editor\shell\edit\command]
Default = C:\WINDOWS\notepad.exe "%1"