Tip

Add a program to the right click menu

Add any program to the menu when you right click. Here are 2 examples I use to edit files easily.

ADD NOTEPAD TO RIGHT-CLICK MENU FOR EVERY FILE

This tip will set Notepad as the default application for any extensions that are not associated with another application. It will also add Notepad to the right-click menu for every file. This feature lets you open any file in Notepad without navigating to Send-To and lets you double-click a file that doesn't have an association established, such as Config.sys, to open it in Notepad. If the file is too big for Notepad, you will get a prompt to open the file in Wordpad instead.

  1. Run REGEDIT.
  2. Navigate to HKEY_CLASSES_ROOT*. (This should be the very first subtree.)
  3. A key called "shellex" should already be here. Add a new key called "Shell" at the same tree level as "shellex."
  4. Under the "Shell" key, create another key called "Notepad."
  5. Create another key under the "Notepad" key called "Command."
  6. You'll see a string value named Default when you highlight the "Command" key. Double-click Default and enter "NOTEPAD %1" (without the quotes). Click OK.
  7. Exit Regedit and test it out.

    Note:The full path to the correct Registry key is: HKEY_CLASSES_ROOT*ShellNotepadCommand

Requires Free Membership to View

ADD WORDPAD TO RIGHT-CLICK MENU FOR EVERY FILE

  1. Run REGEDIT.
  2. Navigate to HKEY_CLASSES_ROOT*. (This should be the very first subtree.)
  3. A key called "shellex" should already be here. Add a new key called "Shell" at the same tree level as "shellex."
  4. Under the "Shell" key, create another key called "Wordpad."
  5. Create another key under the "Wordpad" key called "Command."
  6. You'll see a string value named Default when you highlight the "Command" key. Double-click Default and enter "C:Program FilesAccessoriesWORDPAD.EXE %1" (without the quotes or the appropiate path to wordpad.exe). Click OK.
  7. Exit Regedit and test it out.

Note: The full path to the correct Registry key is: HKEY_CLASSES_ROOT*ShellWordpadCommand


This was first published in July 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.