Add your own procedure to the right mouse menu

zhaozj2021-02-11  177

Everyone will not be somewhere in the right mums. By using the right mouse mate, the associated file can simplify many operations. Typical as UltraEdit-32, WinRAR, ACDSEE, Jinshan Taxi, etc. Whether you also want to add your program to the right menu, that is, it is convenient for the user's operation, making your program very professional! (I use Win2K, the following operations are valid in Win2k, but other Windows can be similar to methods)

First, use "folder option" to modify 1, open "My Computer", enter "Tools -> Folder Selection"; 2. Click the File Type tab, click "New", write to your defined extension (Suppose is "Test"); 3, select "Test", click "Advanced"; 4. On the first line write to the menu to display the content (such as "open with my program"), change what you want Icon; 5, click New, Operation: "Open" in the action list, the application used to perform the operation: "nodepad.exe"; 6, determine.

Modifying folders and drives As long as the corresponding type is selected, the steps are the same.

It is usually changed in this way, it is very simple, but not professional, is it impossible to let the user have to do it? Needless to say, it must be a registry. Second, modify the file Right-click menu Open the registry "My Computer / HKEY_CLASS_ROOT / * / SHELLEX / ContextMenuHandler" branch, there are several, ha, it is them: D Open look, the default is similar to {b5eedee0- C06E-11CF-8C56-444553540000} Dongdong, halo @ _ @ 想 家 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 不 多Try ... 1. New Item Shell under "My Computer / HKEY_CLASES_ROOT / *"; 2, in the shell "open this file with my program"; 3, new items in the next new item, and modify Its default key value is "NOTEPAD.EXE% 1". OK, try one right button on a file, huh, how, how much "open this file with my program", click on the notebook to open this file with Notepad. (% 1 means the first parameter, the file name)

Third, the modified folder right Menu does not have a folder on the folder, no: ("My Computer / HKEY_CLASSES_ROOT" isn't a Folder? Similarly, it will change its shell child. Add a "Open this file with my program ", Um, get it, even the driver is getting it!

Fourth, modify the drive right key menu However, the drive should be different from the folder, and there is a "My Computer / HKEY_CLASSES_ROOT / DRIVE", change it. Add a "Open this folder with my program". Hey, add one.

Ok, now you can associate your program and resource manager's files, folders, and drives all. But the program must be easy to use, otherwise it will hate it, or add a cancellation of the ability:) http://shadowstar.126.com/

转载请注明原文地址:https://www.9cbs.com/read-4340.html

New Post(0)