How can I create a simple file that changes the association of PDF in Windows like the following?
run file1 → change PDF to Sumatra PDF Reader
run file2 → change PDF to FoxIt Phantom
Is there a simple solutions?
First, get the result of this command:
It gives the current association between
Based on this output, I created two
ftype FoxitPhantomPDF.Document="C:\Program Files\SumatraPDF\SumatraPDF.exe" "%1"
ftype FoxitPhantomPDF.Document="C:\Program Files (x86)\Foxit Software\Foxit PhantomPDF\FoxitPhantomPDF.exe" "%1"
You have to run the
.bat files as an admin.
Sorry, but there is a problem there: