|
-
Aug 4th, 2004, 08:56 AM
#1
Thread Starter
Lively Member
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.
-
Aug 4th, 2004, 12:24 PM
#2
Lively Member
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.
-
Aug 4th, 2004, 12:35 PM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|