拡張子のないファイルのデフォルトアプリをNotepad++にする
Chromeで拡張子のないファイル(metadata等)をダウンロードして開こうとしたところ
This file does not have an app associated with it for performing this action. Please install an app or, if one is already installed, create an association in the Default Apps Settings page.
のエラーに遭遇。既定のアプリ (Default apps) -> Choose default apps by file type を見ても、"拡張子のないファイルの関連付け" はどうすればいいのか不明な状況。
そこで、regedit.exe を実行しComputer\HKEY_CLASSES_ROOT
配下で .
の Key を作成。Data はtxtfile
を指定。
続いて、Computer\HKEY_CLASSES_ROOT\txtfile\shell\open\command
の Data を%SystemRoot%\system32\NOTEPAD.EXE %1
から"D:\Program Files\Notepad++\notepad++.exe" "%1"
に変更:
このままだとアイコンがデフォルトの Notepad のままなので、Computer\HKEY_CLASSES_ROOT\txtfile\DefaultIcon
の Data を%SystemRoot%\system32\imageres.dll,-102
から"D:\Program Files\Notepad++\notepad++.exe"
に変更。
できました。
なお、ftype
を使えばもっと楽にできるようです。
qiita.com