Advertisement
5_2007-2008 Registry #176823

Add Items to the right Click Context Menu in Windows

Ever wanted to add an item to the right click context menu that you get in windows. you know, the one that you get if you rigth click on a file !! well heres how to do it.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
Ok, now follow this and you will have no problems
open regedit 
browse to the following key
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\
you should notice that there should be a key called something like open2 with a subkey of command. 
create a new 'open' key, but increment the number that follows it ... for example 'open3' or 'open4'
you should now have something like this 
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\open3\

Set this keys default value to the name of the application that you want to use. for example i will create one called 'note pad'
Now create a subkey to the 'open' key that you just created. call it 'command'. set the default value of the 'command' key to the path and file name of the application that you want to open. 
you should have something like this as the path to the key
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\open4\command\
if you want the application to be able to recieve files ... simple place a space and '%1' following the .exe. you should have something like this. 
'c:\winnt\system32\notepad.exe %1'
Close the registry, go to your desktop and try it out !! 


원본 댓글 (3)
Wayback Machine에서 복구됨