Could someone please tell me what I do to the registry to add a menu item to all files? (Ex: Open With My App, on every file... NOT folders though) Thanks!
Printable View
Could someone please tell me what I do to the registry to add a menu item to all files? (Ex: Open With My App, on every file... NOT folders though) Thanks!
I think you need to do a loop trough all entries in the Registry regarding files (think they all start with . (.exe)), the entries for the folder doesn't start with . so it wouldn't be added.
And another Q.
What does your prog do?
It's alright I found it again, thanks.
You modify the "*" key under HKEY_CLASSES_ROOT and add a "Shell" key, then place a key under that one for your menu (Ex: "Open With My Prog"), then under that key, another key called "command" in which the (Default) string value is the path to your program followed by %1 where you want Windows to give the path of the file...
Yeah I knew all that stuff except for the * key :) that's pretty cool, but doesn't it add the folder thing then aswell ?
Nope... It just adds for all files. I'm guessing because folders don't have an extension. There's a separate entry for Folders around the same area...