VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add Items to the right Click Context Menu in Windows

by Roger D Taylor (5 Submissions)
Category: Registry
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

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.

Rate Add Items to the right Click Context Menu in Windows

Ok, now follow this and you will have no problems
open regedit 
browse to the following key
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellyou 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\commandif 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 !! 


Download this snippet    Add to My Saved Code

Add Items to the right Click Context Menu in Windows Comments

No comments have been posted about Add Items to the right Click Context Menu in Windows. Why not be the first to post a comment about Add Items to the right Click Context Menu in Windows.

Post your comment

Subject:
Message:
0/1000 characters