- 1 year ago
Windows 10: Setting Acrobat Reader as Default PDF Reader from Batch File
To set Adobe Acrobat Reader as the default PDF reader on Windows 10 using a batch file, you can utilize the ftype
and assoc
commands. Here's an example of how you can achieve this:
batch@echo off
rem Set the file type association for PDF files
ftype AcrobatPDF="%ProgramFiles%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%%1"
rem Set the default program for PDF files
assoc .pdf=AcrobatPDF
In this example:
The
ftype
command sets the file type association for PDF files. It associates the file typeAcrobatPDF
with the Adobe Acrobat Reader executable (AcroRd32.exe
). Make sure to update the path to theAcroRd32.exe
executable if it is installed in a different location on your system.The
assoc
command sets the default program for PDF files. It associates the.pdf
file extension with theAcrobatPDF
file type.
Save the above code in a text file with a .bat
extension (e.g., set_acrobat_reader_default.bat
), and then run the batch file with administrative privileges by right-clicking on it and selecting "Run as administrator."
Executing the batch file will set Adobe Acrobat Reader as the default PDF reader on your Windows 10 system.
Please note that the exact file paths and names may vary depending on the version and installation location of Adobe Acrobat Reader on your system. Make sure to adjust the paths accordingly if needed.