Powershell file association

Here you can report bugs found in Far Manager.
Post Reply
BorisU
Posts: 2
Joined: Wed 21 Apr, 2021 09:01
Has thanked: 1 time

Powershell file association

Post by BorisU »

I have a simple file association for the powershell scripts to start them from FAR:
powershell.exe -file !.!

Earlier when I typed "asf.ps1 -group 1" it correctly started asf.ps1 script and passed the parameters to it. However in the recent builds this behavior is broken. It just starts notepad with the script source which I believe is a default action for Windows file association.

build 5254 works for me, 5757 and 5782 do not :(
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Powershell file association

Post by DrKnS »

Using associations in command line is an experimental feature and it has been disabled by default.
You can turn it on by setting System.Executor.UseAssociations to true in far:config.
BorisU
Posts: 2
Joined: Wed 21 Apr, 2021 09:01
Has thanked: 1 time

Powershell file association

Post by BorisU »

Thanks, that solved my problem
Post Reply

Return to “Bug Reports”