Skip navigation

JSI Tip 9411. How can I add a /? command to a programs context menu when I right-click the .EXE in Windows Explorer?


To add a /? to the right-click context menu that Windows Explorer presents for an .EXE file:

1. Copy / Paste the following into an empty Notepad.exe window:

REGEDIT4

\[HKEY_CLASSES_ROOT\exefile\shell\/?\command\]
@="CMD /K \"%1\" %* /?"

2. Save the file as clhelp.txt.

3. Open a CMD.EXE windows.

4. Type the following command and press Enter:

regedit /s clhelp.txt

5. Delete the clhelp.txt file.

6. Close the CMD.EXE window.

NOTE: To add a /? when you right-click other executable files, use the following clhelp.txt file:

.bat

REGEDIT4

\[HKEY_CLASSES_ROOT\batfile\shell\/?\command\]
@="CMD /K \"%1\" %* /?"

.cmd

REGEDIT4

\[HKEY_CLASSES_ROOT\cmdfile\shell\/?\command\]
@="CMD /K \"%1\" %* /?"



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