Search Tools Links Login

Add Items to the right Click Context Menu in Windows

Posted: 2002-06-01
By: ArchiveBot
Viewed: 66

Filed Under:

Visual Basic 6

No attachments for this post

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.

Original Author: Roger D Taylor


Ok, now follow this and you will have no problems
open regedit
browse to the following key
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

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
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:winntsystem32 otepad.exe %1'
Close the registry, go to your desktop and try it out !!

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.