Configure Programs - Multiple files don't work when giving the filename as parameter

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
stevehero
Posts: 77
Joined: Fri Feb 12, 2021 9:17 pm

Configure Programs - Multiple files don't work when giving the filename as parameter

Post by stevehero »

I'm using this for ShareX.exe to open in their editor:

Code: Select all

-ImageEditor %1
Along with ShareX.exe in the path.

The above works with one file but not when trying with more than that.

Seems that instead of doing this:

Code: Select all

ShareX.exe -ImageEditor %1
ShareX.exe -ImageEditor %2
ShareX.exe -ImageEditor %3
etc.

It's doing this:

Code: Select all

ShareX.exe -ImageEditor %1 %2 %3
Image
User avatar
michel038
XnThusiast
Posts: 1273
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Configure Programs - Multiple files don't work when giving the filename as parameter

Post by michel038 »

maybe you can call a .bat file containing a loop

something like

Code: Select all

:bb
if z%1==z go to end
ShareX.exe -ImageEditor %1
shift
goto bb
:end
You can also add a button in a toolbar, with the same method.
stevehero
Posts: 77
Joined: Fri Feb 12, 2021 9:17 pm

Re: Configure Programs - Multiple files don't work when giving the filename as parameter

Post by stevehero »

michel038 wrote: Fri Feb 12, 2021 11:22 pm maybe you can call a .bat file containing a loop
Thanks, that's doing an endless loop.

There was a typo or 3 ;)

I've modified it to work.

Any way to get an icon, fairly new to XnV. I've checked the .ini file but not sure how to do that.

Code: Select all

:bb
if %1==z goto end
"W:\Apps (Portable)\Screen Capture Apps\ShareX\ShareX.exe" -ImageEditor %1
shift
goto bb
:end
exit /b
It does seem as though this is a bug. Hopefully, the devs can see this.

The batch file seems to be needing to be hardcoded into the path so it would be good to get the built-in method to work.
Post Reply