Multi Commander > Script

Open multiple files

(1/2) > >>

Matthias515566:
I use "C:\Program Files\XnViewMP\xnviewmp.exe" "${focusfilepath}" to open the focused file with XnView. That doesn’t work for multiple selected files. How can I do that for multiple selected files?

Mathias (Author):
Use MultiScript and get all selected files, and loop and call it each..

Or if it is CustomCommands type.. you can enable option for that command to 'run command separately for each selected files/folder'

Matthias515566:

--- Quote from: Mathias (Author) on May 21, 2025, 22:11:56 ---Use MultiScript and get all selected files, and loop and call it each..

Or if it is CustomCommands type.. you can enable option for that command to 'run command separately for each selected files/folder'

--- End quote ---
But "FocusFilePath" only uses the file that is currently in focus, not all selected files.
I guess I need a different command for that.

Mathias (Author):
If you enable that option for the script, it will be run once for each file that is selected.
and for each iteration {FocusFilePath} will be the next file of all the selected.

Matthias515566:
This doesn't work. I guess I have to learn how to do multi-scripting, or you could give me a working example.

Navigation

[0] Message Index

[#] Next page

Go to full version