1
I am developing a java system, but from it I should change the default program to open . pdf in the switch. In Windows 10 it opens by default in Edge, but from the system it should change to Adobe.
I’ve tried the cmd with the Assoc command (restarting the computer later):
assoc .pdf=AcrodRd32.exe
or
assoc .pdf=AcroExch.Document.DC
I have also tried using regedit with the script (also restarting the computer later):
===================
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pdf]
@=".pdf=AcroExch.Document.DC"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\.pdf\OpenWithList]
[HKEY_CLASSES_ROOT\.pdf\OpenWithList\AcrodRd32.exe]
@=""
===================
I tested the script in HKEY_CLASSES_ROOT.pdf as in HKEY_CLASSES_USER Software Microsoft Windows Currentversion Explorer Fileexts but none worked.
I believe that straight through java has no way to change. Does anyone have any idea how to make this change ?
Yeah, we’re out of luck anyway. Really all I tried was on Windows 10, but nothing worked. I will try in previous versions, but all the computers here in the company are Windows 10 so it will not solve. Thanks anyway!
– Andre Hoffmann