First, open registry management program regedit.exe
Start --> Run --> regedit
Select hkey_classes_root and expand.
First, right-click the file type menu,
My system is: sp1 of win2003. There is no "shell" primary key in the lower-level primary key of hkey_classes_root *. We can create a new one by ourselves. create a primary key "open with Notepad ". next, create a new primary key "command" and then "command", double-click the default on the right side, and type "c: windowsotepad.exe" in the Notepad program path, OK.
In this case, right-click the file type and choose the menu ..
Close Registry Editor. Check the effect. Just right-click the file type menu.
Below, we add the right-click menu in the folder type.
Continue to view my operations.
Expand the hkey_classes_root primary key.
Find the secondary primary key folder of the folder. expand. it is also in the shell primary key. new. similar to the preceding steps. create a primary key "Notepad open @_@". next, create a new primary key "command" and then "command", double-click the default on the right side, and type "c: windowsotepad.exe" in the Notepad program path, OK.
In this way, you can right-click the folder type to add all menu operations. See the effect below.
Of course, it is best to add parameters when we are creating. In this way, we can accept data in Notepad. For more information, see.
After the path, add "% 1" to pull it.
The default value of a specific command is c: windowsotepad.exe "% 1"
In this way, you can pass parameters to notepad.
Finally, I exported the registry key. Khhe, it is much easier to add directly.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT * shell open \ command in Notepad]
@ = "C: \ windows \ notepad.exe" % 1 ""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFoldershell notepad open the \ command]
@ = "C: \ windows \ notepad.exe" % 1 ""
Save it as the reg file and import it to the Registry. If the parameter is not included
By clin003 http://blog.csdn.net/clin003 at 20070126
Contact info. QQ: 27020287
Mail: qq27020287@gmail.com