Re: Add a context menu item to Windows Explorer (Win98) with VB6?



You can easily add a custom menu to open a file
with a specific program. Under HKCR\*\shell you do
something like this:

HKEY_CLASSES_ROOT\*\shell\Open with Notepad\
default value: "Open with Notepad"

HKEY_CLASSES_ROOT\*\shell\Open with Notepad\Command
default value: "C:\WINDOWS\Notepad.exe %1"

The first value defines the menu item text.
The second gives the command line path.
You then just check the Command$ value
when your program starts to see if you've been
sent a command line.



.


Loading