It is very convenient to operate files with right-click menu, but sometimes when we want to realize some file operations we want by right-click menu, there is no corresponding command in the right-click menu. For example, we need to use the right-click menu command to open any file with Notepad; right-click a folder at any time to quickly enter the command prompt window of that folder; use the right-click command to invoke the utility program we specify at any time, etc. These needs are not supported by the default context menu. Through registry editor or tool software, you can make up for these shortcomings.
1. Notepad in the right-click menu Open any file
Notepad can open TXT files by default, but we may also want to use Notepad to open many other formats, such as web code or various types of program code files. In this case, we can add the option “Open with Notepad” to the right-click menu of the file. To do this, the Registry Editor is needed to assist.
In the Registry Editor, expand to the following path “HKEY_CLASSES_ROOT*” (Figure 1).
Right-click the “*” item, select “New → Item”, and name the new item shell (Figure 2).
Note that if there is already a shell entry, you do not need to perform the above steps. Next, create a new entry under shell and name it “Open with Notepad” (Figure 3).
Afterwards, create a new Command item under the above “Open with Notepad” item, double-click the “Default” line in the right pane of the item, and fill in the value data as “notepad %1 ” (Figure 4). Close the registry editor and restart the computer.
Later, when we right-click a document, the context menu will appear “Open with Notepad” command (Figure 5). In this way, any program code file can be easily opened with Notepad through the right-click menu command. Of course, you can also use Notepad to open a picture or an EXE file, if you want to do so. Although this does not seem to make much sense in general, it can be useful in special situations, such as finding passwords or copyright information.
2. Right click into any folder of the command prompt
When we enter the Command Prompt window through the system menu or CMD command, the default path it opens is often the system’s current user folder or SYSTEM32 folder. However, we often want to work in a folder we specify, and then we have to use the path conversion command CD to go to the target folder. In fact, the problem is much easier if you add an option to the folder menu to go to the Command Prompt window. The above requirement can also be implemented using the Registry Editor.
Open the Registry Editor and locate “HKEY_CLASSES_ROOTFoldershell”, create a new cmdPrompt sub-section under shell and double-click the “Default” name in its right pane. “name” in its right pane, and change its value data to “Open Command Prompt window” (Figure 6).
Then create a command item under the cmdPrompt sub-section, and modify its numerical data to “c:windowssystem32cmd.exe cd “%1″” (Figure 7). Close the registry editor after the modification is completed.
After that, when we click the right mouse button on any folder, we will find the option “Open Command Prompt window” (Figure 8). After selecting this command, you will be able to access the Command Prompt window for that folder.
3. Add any utility to the context menu
What if we need to launch a specific program through the context menu? This can be done with a tool called “Add Right Click”.
Run the “Add Right Click” software, suppose we want to add the command “Invoke TextEditorPro” to the right-click menu, in the “Add Right Click” tab In the “Add Right Click” tab, type “TextEditorPro” for “Program Name”, “Invoke TextEditorPro” for “Name in Right Click”, and The “Program Location” is specified as the actual storage location of TextEditorPro.exe main program with the Open File button on the right, and finally click the “Add” button to finish adding (Figure 9).
Tip: If you no longer want to use the custom right-click program option, start the software again, select the “Delete right-click” tab, then fill in the same program name as when you defined the right-click item, and click the “Delete” button.