How to set file associations to open files with double extension .fb2.zip?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Tau Svetvechnogo
Posts: 12
Joined: 11 Jun 2021 08:33
Location: Volgograd

How to set file associations to open files with double extension .fb2.zip?

Post by Tau Svetvechnogo »

Friends! Can anyone give a hint how - how to set file associations to open files with double extension .fb2.zip?

The thing is that if you specify such an extension in the file associations, still opens the archiver, but not the desired program (Alreader). Of course, you can give another extension, for example .fb2z or .fbz, but then the android reader does not see this file. What can be done to solve it?

highend
Posts: 14562
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to set file associations to open files with double extension .fb2.zip?

Post by highend »

If in doubt a script that decides if that is really the double extension (or not) and opens <x> or <y>...

zip>::load "Extract zip derivates.xys";

and the script content could be:

Code: Select all

if (regexmatches(<curitem>, "\.fb2\.zip$")) {
        run lax("<some program for .fb2.zip>" "<curitem>");
    } else {
        run lax("<some program only for .zip>" "<curitem>");
    }
One of my scripts helped you out? Please donate via Paypal

Post Reply