Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Adding items to Explorer's right-click menu (C++)
  
User name:
Password:
Reply:
 

UserPost
beneficii
Posts: 504/567
Originally posted by Disch
I'm looking for a way to add a few options to the right-click menu in explorer. Like for example when you right-click on a certain filetype, my new added options would appear and clicking on them would launch of program with the proper commandline args. A perfect example of a program which does this is WinRAR (or WinZip) -- when you right click on a .zip/.rar file, several options to decompress the file appear.

The only thing I know is that you have to make some weird additions to the registry. What exactly you have to add/change is still a mystery, as is anything else you need to do to get something like this working. Sliver pointed me to HKEY_CLASSES_ROOT/*/shellex/ContextMenuHandlers/ ...where an entry for WinRAR can be found -- unfortunatly, I wasn't able to use WinRAR as an example, or even dig up further items for research.

If anyone can shed any light on this, it'd be appreciated.


Well, on Win98, if I want to add more options for a file type, I go to HKEY_CLASSES_ROOT, go to one of the extensions I want to change (starting with "."), look at the name in default, go to that name under HKEY_CLASSES_ROOT, go to subfolder "shell," add a new folder to that shell, to the default put the name of the command, create a new folder that's sub to it named "command," and put the Command Prompt to command to handle the file like you want under default using "%1" to substitute for the file name.
dan
Posts: 735/782
http://www.codeproject.com/shell/shellextguideindex.asp
Dish
Posts: 579/596
I'm looking for a way to add a few options to the right-click menu in explorer. Like for example when you right-click on a certain filetype, my new added options would appear and clicking on them would launch of program with the proper commandline args. A perfect example of a program which does this is WinRAR (or WinZip) -- when you right click on a .zip/.rar file, several options to decompress the file appear.

The only thing I know is that you have to make some weird additions to the registry. What exactly you have to add/change is still a mystery, as is anything else you need to do to get something like this working. Sliver pointed me to HKEY_CLASSES_ROOT/*/shellex/ContextMenuHandlers/ ...where an entry for WinRAR can be found -- unfortunatly, I wasn't able to use WinRAR as an example, or even dig up further items for research.

If anyone can shed any light on this, it'd be appreciated.
Acmlm's Board - I2 Archive - Programming - Adding items to Explorer's right-click menu (C++)


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.003 seconds.