Which is XnviewMP syntax to use "path" of selected file in a "parameter" (configure programs):
Moderator: xnview
-
cadu
- Posts: 114
- Joined: Thu Mar 15, 2012 10:43 am
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
You do not have the required permissions to view the files attached to this post.
-
xnview
- Author of XnView
- Posts: 47513
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
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.
-
stevehero
- Posts: 77
- Joined: Fri Feb 12, 2021 9:17 pm
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.
-
Patrice.
- Posts: 29
- Joined: Sun Feb 25, 2018 1:35 am
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 %UYou do not have the required permissions to view the files attached to this post.
-
stevehero
- Posts: 77
- Joined: Fri Feb 12, 2021 9:17 pm
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-
Patrice.
- Posts: 29
- Joined: Sun Feb 25, 2018 1:35 am
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.
-
stevehero
- Posts: 77
- Joined: Fri Feb 12, 2021 9:17 pm
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.
-
Patrice.
- Posts: 29
- Joined: Sun Feb 25, 2018 1:35 am
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)
You do not have the required permissions to view the files attached to this post.
-
stevehero
- Posts: 77
- Joined: Fri Feb 12, 2021 9:17 pm
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"
-
Patrice.
- Posts: 29
- Joined: Sun Feb 25, 2018 1:35 am
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?
-
stevehero
- Posts: 77
- Joined: Fri Feb 12, 2021 9:17 pm
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.