LoginSignup
37
44

More than 5 years have passed since last update.

エクスプローラの右クリックメニューをカスタマイズする

Last updated at Posted at 2014-05-02

エクスプローラの右クリックメニューをカスタマイズするためのレジストリキーと.regファイルの例。

注意 : .regファイルに日本語を含める時はUTF-16で保存すること。

任意のファイルを右クリックした時のメニューを追加する

HKEY_CLASSES_ROOT\*\shell\《メニュー名》\command

open_editor.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\open_editor]
@="ノートパッドで開く(&N)"

[HKEY_CLASSES_ROOT\*\shell\open_editor\command]
@="C:\\\\Windows\\\\System32\\\\notepad.exe \\"%1\\""

任意のフォルダを右クリックした時のメニューを追加する

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\《メニュー名》\command

cmd_here.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd_here]
@="コマンドプロンプトで開く(&P)"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd_here\command]
@="C:\\\\Windows\\\\System32\\\\cmd.exe /k pushd \\"%L\\""

何もないところを右クリックした時のメニューを追加する

HKEY_CLASSES_ROOT\Directory\background\shell\《メニュー名》\command

cmd_here-2.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_here]
@="コマンドプロンプトを開く(&P)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_here\command]
@="C:\\\\Windows\\\\System32\\\\cmd.exe /k pushd \\"%V\\""
37
44
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
37
44