Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: CMD on November 12, 2019, 21:32:58

Title: Is there a ${focusfilepath} alternative that works for multiple selected files?
Post by: CMD on November 12, 2019, 21:32:58
For example, if I want a user defined command that adds a selected file or folder to a PeaZip archive, I can do:

"C:\(whatever)\PeaZip\peazip.exe" -add2folder "${focusfilepath}"

...and this works great when there's only a single file or folder selected, but with multiple files/folders selected, this does not work. For example, if I select A.txt, B.txt and C.txt and run the command, it will only add A.txt to the archive.  Is there something outside of MultiScript that works for multiple selected files/folders that I'm just not seeing, or do I need to use MultiScript for this?
Title: Re: Is there a ${focusfilepath} alternative that works for multiple selected files?
Post by: CMD on November 16, 2019, 04:45:12
Or to put it another, simpler way, I'm looking for something that applies to no just the focused file, but all selected files.
Title: Re: Is there a ${focusfilepath} alternative that works for multiple selected files?
Post by: Ulfhednar on November 23, 2019, 16:41:02
I think in this instance it is the fact that  "${focusfilepath}" is for a single item in scope, so you need to tell it to recurse the selection for an array of entries.

You could probably script a button then drop the files onto it with MS, maybe button +custom commands  (eg MC.Explorer.Selection.Select) will do it.