Skip navigation

JSI Tip 7535. How do I add a menu item to the context menu that appears when I right-click a drive letter?

The drive letter context menu is controlled by the registry sub-keys keys and Value Names at:

HKEY_CLASSES_ROOT\Drive\shell

If you wanted to add a Tree menu item, you could:

1. Copy / Paste the following to a DTree.reg file:

Windows Registry Editor Version 5.00

\[HKEY_CLASSES_ROOT\Drive\shell\Tree\]
@="Tree"

\[HKEY_CLASSES_ROOT\Drive\shell\Tree\command\]
@="cmd.exe /k Tree %L |MORE"


2. Merge the DTree.reg file with your registry, or run regedit /s DTree.reg.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish