Page 1 of 1

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

Posted: Fri Feb 12, 2021 10:37 pm
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

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

Posted: Fri Feb 12, 2021 11:22 pm
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.

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

Posted: Fri Feb 12, 2021 11:42 pm
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.