I'm using Windows 10 and I wanted .pie files to be opened with a jar file I created, so I used assoc and ftype as follows:
assoc .pie PieLang
ftype PieLang=java -jar pielang.jar "%1"
assoc .pie
does return .pie = PieLang
, and ftpe PieLang does return PieLang=java -jar pielang.jar "%1"
, so everything should work.
However, everytime I open a .pie file, no matter if I do it using double click or using CMD, it will always open with Notepad.
Is there any way I can fix that?
EDIT: Now I can't change .py files either. But somehow pdf files it does let me change
EDIT2: It doesn't work on file properties as well. Instead, when I choose a program as default on the menu, it opens on that program one time, but it doesn't change the default
EDIT3: Ramhound's solution doesn't work as I said before.
(Asked in StackOverflow and my question was marked "on hold" and they told me to post my question here, so I did)