Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
Moderators: helmut, XnTriq, xnview
Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
Hi,
I would appreciate help.
In order a parameter (configure programs) can work, I need to insert the "file path" of the selected file in XnView browser.
The main parameter is "-ImageEditor", but I need to add a "file path" prefix to it, as showed in this snapshot:
As fictional example (since %FILEPATHS% doesn't work in XnView), what I need is something like: "%FILEPATHS% -ImageEditor"
Which is XnviewMP syntax to use "path" of selected file in a "parameter"?
Thanks for assistance,
Carlos
I would appreciate help.
In order a parameter (configure programs) can work, I need to insert the "file path" of the selected file in XnView browser.
The main parameter is "-ImageEditor", but I need to add a "file path" prefix to it, as showed in this snapshot:
As fictional example (since %FILEPATHS% doesn't work in XnView), what I need is something like: "%FILEPATHS% -ImageEditor"
Which is XnviewMP syntax to use "path" of selected file in a "parameter"?
Thanks for assistance,
Carlos
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
currently the full pathname of file is used as argument, so no way to add path of this file
Pierre.
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
I got this working with:

ED: Only noticed this only works with one file selected.
Code: Select all
-ImageEditor %1

ED: Only noticed this only works with one file selected.
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
Trystevehero wrote: Fri Feb 12, 2021 10:15 pm I got this working with:ED: Only noticed this only works with one file selected.Code: Select all
-ImageEditor %1
Code: Select all
-ImageEditor %U
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
Unfortunately, that didn't work for this case. It was trying to upload them too.
I had help on another similar thread and I'm now using a .bat file.
I had help on another similar thread and I'm now using a .bat file.
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
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
last suggestion, did you try: -ImageEditor "%1" (with double quotes " ", In a different forum I saw many Windows users are using " " in parameter, I'm not a Windows user though, so I don't know) or call directly the app by its file name the same way: ShareX.exe "%1" (with or without the - )
In all case I'm glad you've found a solution
In all case I'm glad you've found a solution

Last edited by Patrice. on Sat Mar 06, 2021 3:15 am, edited 2 times in total.
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
I did try that. Double quoting didn't have any affect.
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
Did you tried to see what's the exact command in your Microsoft Windows main menu (the main app launcher in the Windows OS something like Start button then Programs/...) with a right click on the name of the application (here ShareX) then "properties" or with a menu editor?
A bit like this (sorry it's the Linux "Main menu editor", but you should have something similar on your system)
A bit like this (sorry it's the Linux "Main menu editor", but you should have something similar on your system)
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
I'm not sure where %U comes into play in windows.
Here's the command line argument that's used for Windows.
Source: https://github.com/ShareX/ShareX/issues ... -258318864
Here's the command line argument that's used for Windows.
Code: Select all
"C:\Program Files\ShareX\ShareX.exe" -ImageEditor "%1"
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
So no choice, for Windows it's "%1"
I saw on the gihub link you provided some one did put "-ImageEditor (filename)" instead of "-ImageEditor %1" did you tried it to open multiple images?
I saw on the gihub link you provided some one did put "-ImageEditor (filename)" instead of "-ImageEditor %1" did you tried it to open multiple images?
Re: Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
That was me that posted that. That was for faststone image viewer. Doesn't work for this app.