Folder/Path Specific File Associations?

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
ThorsWrath
Posts: 2
Joined: Mon 25 Sep, 2017 15:06
Has thanked: 1 time

Folder/Path Specific File Associations?

Post by ThorsWrath » Mon 25 Sep, 2017 15:19

Hello!

Is it possible to setup folder specific File associations? -i.e based on current folder/path change the FAR Managers File Associations for Execute/view/Edit etc?

The current Insert file associations - seems to accept only file mask - not folder or path mask?

My use case is - based on my current folder, i want to have a different action for "Execute" (Enter) and "View/Edit" (F3/F4) commands. I analyze file samples that may be malicious and keep them in a separate folder - i want to change the file association for *.exe" only in this folder to open my Hex Editor instead of executing the file.

Thanks!

User avatar
John Doe
Бюрократ
Posts: 11387
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 16 times
Been thanked: 100 times

Folder/Path Specific File Associations?

Post by John Doe » Mon 25 Sep, 2017 15:45

Well, it is possible, but not exactly as you want.
There is special IF EXIST command (see help).
So you can place files with special names as markers for your associations.

ThorsWrath
Posts: 2
Joined: Mon 25 Sep, 2017 15:06
Has thanked: 1 time

Folder/Path Specific File Associations?

Post by ThorsWrath » Mon 25 Sep, 2017 17:52

Thanks for this work around!

I created a blank file called ".dirty" in a folder and check for that file name in IF Exist - if present, my file association runs my hex editor else just executes a file

pepak
Posts: 330
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 3 times
Been thanked: 9 times

Folder/Path Specific File Associations?

Post by pepak » Wed 27 Sep, 2017 16:37

Quite an interesting feature, new to me. Thanks!

Post Reply

Return to “Support and Troubleshooting”