News:

MultiCommander v16.6 is released!

Main Menu

Open multiple files

Started by Matthias515566, May 21, 2025, 17:50:10

Previous topic - Next topic

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'
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.

Mathias (Author)

What script type is it?

Matthias515566

It is a "External" Script. A very simple command: "C:\Program Files\XnViewMP\xnviewmp.exe" "${focusfilepath}"

Mathias (Author)

ahh Ok. I not sure that option is supported for that.