Which registry entry for adding a shell extension to all files?
-
Hello, in this post http://www.codeproject.com/script/Forums/View.aspx?fid=1647&select=2532709#xx2532709xx[^] i used the RegistryKey for adding a shell extension to my own fileformat .cpack. Now what i want in addition to that is that i can select some files (min 2 files) and then in the context menue there should be "pack with CPACK". So now, can somebody help wen which registry entry i need to add for this ? Thanks. bye, gabbana
-
Hello, in this post http://www.codeproject.com/script/Forums/View.aspx?fid=1647&select=2532709#xx2532709xx[^] i used the RegistryKey for adding a shell extension to my own fileformat .cpack. Now what i want in addition to that is that i can select some files (min 2 files) and then in the context menue there should be "pack with CPACK". So now, can somebody help wen which registry entry i need to add for this ? Thanks. bye, gabbana
Using Regedit, add a key named HKEY_CLASSES_ROOT\*\shell. Under that key, add another key with the name you want displayed in the context menu (e.g., pack with CPACK). Under that key, add another key named command. Change the (Default) value of that key to whatever command is necessary to run your application (e.g., c:\some_folder\cpack.exe "%1"). You should end up with something similar to: [HKEY_CLASSES_ROOT\*\shell\pack with CPACK\command] @="notepad.exe %1"
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne