The two batch files in this folder can be used to install and uninstall the shortcuts to pdf2doi in the context menu of Windows which appears when right-clicking on a .pdf file or a directory
First, make sure that pdf2doi
has been installed as described in the readme of the main folder (pip install pdf2doi
).
Then, locate the folder where the file pdf2doi.exe file has been created. This will depend on the folder of your python installation.
A simple way to find the folder is to type
where pdf2doi
in a Windows terminal (assuming that the path of pdf2doi is within the global variable PATH of the command prompt).
Save the file Install_RightClick.bat
on your computer. Right click on it and select 'Edit'. The first line is
set path_pdf2doi=Path\To\Scripts
Replace 'Path\To\Scripts' with the path to the folder where pdf2doi.exe is located. NOTE: Do not add the "\pdf2doi.exe" part. If the path is, for example "C:\python38\scripts\pdf2doi.exe", then set
set path_pdf2doi=C:\python38\scripts
Save the file Install_RightClick.bat
and run it as an administrator (Right click on it, then click on "Run as administrator").
Save the file Uninstall_RightClick.bat
on your computer and run it as administrator (Right click on it, then click on "Run as administrator").
If, for some reason, the entries in the right-click context menu do not disappear after running Uninstall_RightClick.bat
(or if you uninstall pdf2doi
without first uninstalling this functionality)
you can open the system register manually and delete the following keys
HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\pdf2doi
HKEY_CLASSES_ROOT\Directory\shell\pdf2doi