In this article we will look at how to add items to the context menu or more commonly referred to as ‘the right hand click menu’.

Just to be clear what the context menu is, if you right hand click on an item on your desktop you see something like this:

A context menu

an example of a right click menu

In the menu above we have added the option to ‘Upload To Sage’ and this option will only appear in context menus, or right hand clicks, on PDF files. So let’s look at the steps required to add an option to a specific file type. We will use PDF as our example.

Regedit – editing the registry.

  • Press the “Win + R” keys on the keyboard,  type “regedit” and then click “Ok”.
running regedit

How to start Regedit

  • If you are not familiar with Regedit – make sure you take a backup of your registry or ask someone else to do this for you.
  • Find the key HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf
  • If it doesn’t exist right click on HKEY_CLASSES_ROOT\SystemFileAssociations click New and rename the new key as .pdf
  • Right click on HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf , click New, and select Key and rename the new key as Shell
  • Right click on HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\Shell, click New, and select Key and rename the new key as the name you want to appear in the context menu – in the example ‘Upload To Sage’
  • Right click on HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\Shell\Upload To Sage, click New, and select Key and rename the new key as Command
  • You should now see this:
extract 1 form regedit

Regedit screenshot 1

  • Next, in the right hand pane double click on Default and in the “Value data” text box, enter the path of the program you want to execute and click OK
context menu configuration

Regedit screenshot 2

  • If you right hand click on your file type you should now see the option you have added.

If you are interested in our PDFDataNet for Sage options please click here.
Detailed information on editing the registry is available here

 

 

Pin It on Pinterest

Share This