Results 1 to 3 of 3

Thread: Add entry to context menus

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    89

    Add entry to context menus

    Hi everybody,
    I have to add an entry to the context menu that shows up when the user right-clicks a file. I'd like to do this in order to send that file to my application, not unlike the "Add to Zip" entry does with Winzip.

    I wrote this value
    myApp.exe "%1"
    to this registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\My Entry\Command

    and MyEntry is correctly displayed inside the context menu for txt files.

    The problem is that this isn't working for a custom file extesion such as .qwe
    If I write that same value to this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\qwefile\shell\My Entry\Command
    MyEntry won't show up
    Am I missing something?

    Thanks for any follow-ups.
    bye
    Last edited by BrightSoul; Aug 4th, 2004 at 09:00 AM.
    - mo! I said MOOOOOOO!!
    - ...yep, that's a cow, alright.

  2. #2
    Lively Member
    Join Date
    Apr 2003
    Posts
    114
    Have you created a key HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.qwe that points to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\qwefile? For the default setting of the key .qwe, the value should be qwefile.

    I beleive you need both of those keys for it to show up. If you look at HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.txt or something like it, your key should be set up like it.
    I can do all things with VB.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    89
    woah! thanks man, that did the trick
    hooray!
    - mo! I said MOOOOOOO!!
    - ...yep, that's a cow, alright.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width