Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Which registry entry for adding a shell extension to all files?

Which registry entry for adding a shell extension to all files?

Scheduled Pinned Locked Moved System Admin
comwindows-adminlinuxtoolshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gabbana
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • G 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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups