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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Again, under Vista, this will fail.


You mean it just doesn't work or are you talking
about the difficulty in writing to HKCR?

Interestingly enough, this will work under HKEY_CURRENT_USER. I've done
it
recently with no ill side effects to speak of...so far. <g>


How can it be done under HKCU? You mean that you
can use the HKCU\Software\Classes subkey in Vista to
augment or override the HKCR key?


- Kev

"mayayana" <mayaXXyana@xxxxxxxxx> wrote in message
news:eOsrQNYMJHA.5228@xxxxxxxxxxxxxxxxxxxxxxx
| 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.
|
|
|




.



Relevant Pages

  • Re: Shell extension to pre filter file double click action?
    ... Ah...I think you misunderstood my original point, that HKCR is a complte ... HKLM\SOFTWARE\Classes is the same thing as writing to HKCR. ... Saving extension settings to HKCU does override the HKLM settings, ...
    (microsoft.public.vb.winapi)
  • Re: Shell extension to pre filter file double click action?
    ... HKLM\SOFTWARE\Classes is the same thing as writing to HKCR. ... I understood that HKCR is actually a subkey of HKLM, ... reasons that I write to HKCU rather than HKU: ... with people having limited permission on Vista. ...
    (microsoft.public.vb.winapi)
  • Re: How to Register DLL ?
    ... new key in HKCU\Software\Classes is not in HKCR ... Software that registers in HKCU would have ... OCX in the System folder." ...
    (microsoft.public.vb.winapi)
  • Re: winsock??
    ... >>> MsgBox test.LocalIP ... >> Copyright Microsoft Corporation 1996-2001. ... Do I need it under HKCR (HKCU) too ...
    (microsoft.public.scripting.vbscript)
  • Re: File Association in Dialog-Based Application
    ... the write will fail if the user does not have write permission in HKLM (it does not get transferred to HKCU). ... So writing to HKCR is a kind of crap-shoot, and consequently RegisterShellFileTypes() is broken. ...
    (microsoft.public.vc.mfc)