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 »

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: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Folder/Path Specific File Associations?

Post by John Doe »

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 »

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: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

Folder/Path Specific File Associations?

Post by pepak »

Quite an interesting feature, new to me. Thanks!
Post Reply

Return to “Support and Troubleshooting”