Author Topic: Open multiple files  (Read 1484 times)

Matthias515566

  • Power Member
  • ****
  • Posts: 343
    • View Profile
Open multiple files
« on: May 21, 2025, 17:50:10 »
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)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4680
    • View Profile
    • Multi Commander
Re: Open multiple files
« Reply #1 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'

Matthias515566

  • Power Member
  • ****
  • Posts: 343
    • View Profile
Re: Open multiple files
« Reply #2 on: May 22, 2025, 21:33:08 »
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)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4680
    • View Profile
    • Multi Commander
Re: Open multiple files
« Reply #3 on: May 22, 2025, 21:49:37 »
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

  • Power Member
  • ****
  • Posts: 343
    • View Profile
Re: Open multiple files
« Reply #4 on: May 24, 2025, 20:18:40 »
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)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4680
    • View Profile
    • Multi Commander
Re: Open multiple files
« Reply #5 on: May 25, 2025, 00:18:57 »
What script type is it?

Matthias515566

  • Power Member
  • ****
  • Posts: 343
    • View Profile
Re: Open multiple files
« Reply #6 on: May 25, 2025, 11:33:18 »
It is a "External" Script. A very simple command:
Code: [Select]
"C:\Program Files\XnViewMP\xnviewmp.exe" "${focusfilepath}"

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4680
    • View Profile
    • Multi Commander
Re: Open multiple files
« Reply #7 on: May 25, 2025, 22:14:01 »
ahh Ok. I not sure that option is supported for that.