Sam Tansy - 2020-04-11

Hi, I just discovered this plugin and it seemed to be very simple and useful although bit tricky to set up.
I did exactly like you said in manual and it didn't work. It had it's moments but not quite useful outcome. I also tried it in with DoubleCommander and it wasn't much better. But the next day, trying to view one associated file it worked. Soon I discovered that it works different way than in manual and wanted to share it if anyone's interested.

What I did was to install it in lister plugins directory, changed name a bit and edited TC configuration file (wincmd.ini/pp_conf.ini/doublecmd.xml):
from: (for me it's 18'th plugin; you need to adjust it to yours)

[ListerPlugins]
(...)
18=%COMMANDER_PATH%\plugins\wlx\anycmd\anycmd.wlx
18_detect="EXT="ANYCMD""

to

[ListerPlugins]
(...)
18=%COMMANDER_PATH%\plugins\wlx\anycmd\anycmd.wlx
18_detect="EXT="ANYCMD" | EXT="7Z" | EXT="TAR" | (EXT="CPIO" & ([0]=199 & [1]="q")) | EXT="SQUASHFS" | EXT="SB""

and more importantly plugin configuration Anycmd.ini:

[AnyCmd]
command=arc l "%s"
DetectString="EXT=ANYCMD"
Stream=3

Now it works. In both, in Total commander and Double commander.

It seems it respects 'DetectString' in main TC ini and not in plugin's one.

One more thing to be mentioned %s in AnyCmd.ini command has to in quotes, otherwise it will not work with files with spaces or non-latin characters in name.

Other than that it took me half a day to make it work, cool plugin.

 

Last edit: Sam Tansy 2021-04-18