calling external programs with parameters
Moderators: XnTriq, helmut, xnview
calling external programs with parameters
hello,
i added some calls of external programs to the toolbar. all are working fine but i found no way to add some (working) start-parameters.
example with total commander
... Totalcmd.exe in command line
is working; but opens a new total commander every time and uses the left window
... Totalcmd.exe /o /T /R in command line
didn't work; use a running total-commander, open a new tab in the right window
is there generally no way to call external programs with parameters ?
thank you
i added some calls of external programs to the toolbar. all are working fine but i found no way to add some (working) start-parameters.
example with total commander
... Totalcmd.exe in command line
is working; but opens a new total commander every time and uses the left window
... Totalcmd.exe /o /T /R in command line
didn't work; use a running total-commander, open a new tab in the right window
is there generally no way to call external programs with parameters ?
thank you
-
- Author of XnView
- Posts: 45224
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Author of XnView
- Posts: 45224
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 18
- Joined: Tue Feb 23, 2010 12:36 pm
Re: calling external programs with parameters
hello,
i tried to give some parameters for 'open with' in xnview version 1.96 but nothing is working.
only the pure exe-call without any parameters is working.
an example for total commander:
the entry in registry and some other programs for context-menue
Program Files\.....totalcmd\Totalcmd.exe /O /T /R="%1"
means: open an new tab in the right window with the marked object (if totalcommander is not open, open it)
in xnview only "Program Files\.....totalcmd\Totalcmd.exe" is working. with parameters there is no action.
i edited the ini [OpenWith] and tried all possibilities with quotes (like "/O /T /R="%1"") - but there is no action with parameters.
is this new feature in v 1.96 killed or how to work with parameters in xnview ?
thank you
i tried to give some parameters for 'open with' in xnview version 1.96 but nothing is working.
only the pure exe-call without any parameters is working.
an example for total commander:
the entry in registry and some other programs for context-menue
Program Files\.....totalcmd\Totalcmd.exe /O /T /R="%1"
means: open an new tab in the right window with the marked object (if totalcommander is not open, open it)
in xnview only "Program Files\.....totalcmd\Totalcmd.exe" is working. with parameters there is no action.
i edited the ini [OpenWith] and tried all possibilities with quotes (like "/O /T /R="%1"") - but there is no action with parameters.
is this new feature in v 1.96 killed or how to work with parameters in xnview ?
thank you
-
- Author of XnView
- Posts: 45224
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 18
- Joined: Tue Feb 23, 2010 12:36 pm
Re: calling external programs with parameters
yes, but where is it.xnview wrote:Please use Param_? with OpenWith_?
i searched the xnview.ini, the forum, all ...
-
- Author of XnView
- Posts: 45224
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: calling external programs with parameters
Add it.walter_o wrote:yes, but where is it.xnview wrote:Please use Param_? with OpenWith_?
OpenWith_1=...
Param_1=...
Pierre.
-
- Posts: 18
- Joined: Tue Feb 23, 2010 12:36 pm
Re: calling external programs with parameters
yes, i checked it, now xnview use the open totalcommander (parameter /O) with the marked object.
but to open a new tab in the right windows does not work (parameter /T /R="%1")
.
maybe some more 'trial and error' is need
but to open a new tab in the right windows does not work (parameter /T /R="%1")
.
maybe some more 'trial and error' is need
-
- Posts: 18
- Joined: Tue Feb 23, 2010 12:36 pm
Re: calling external programs with parameters
it works - but in the 'wrong' window of totalcommander.
with
Param_1=/O /T /R="%1"
the aktive totalcommander is used (/O), a new tab is opend, and the selected file is marked (T).
but the parameter /R="%1" is fully ignored. same action with or without this parameter. i tried all possible combinations and started xnview very often tonight.
this are the same entries like in my registry and some other programs which suspend the context menue of the system.
all are working for the right window
is there something special with xnview, maybe 'left window hardcoded' ?
thank you
with
Param_1=/O /T /R="%1"
the aktive totalcommander is used (/O), a new tab is opend, and the selected file is marked (T).
but the parameter /R="%1" is fully ignored. same action with or without this parameter. i tried all possible combinations and started xnview very often tonight.
this are the same entries like in my registry and some other programs which suspend the context menue of the system.
all are working for the right window
is there something special with xnview, maybe 'left window hardcoded' ?
thank you
-
- Posts: 18
- Joined: Tue Feb 23, 2010 12:36 pm
Re: calling external programs with parameters
i tried XnView v 1.9.2 now. but there is the same problem: the parameter /R="%1" is fully ignored
anyone with an idea ?
anyone with an idea ?
-
- Author of XnView
- Posts: 45224
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: calling external programs with parameters
/O /T /R="%1" will be used when launching TC, i think that you would like that %1 is replaced by filename?walter_o wrote:i tried XnView v 1.9.2 now. but there is the same problem: the parameter /R="%1" is fully ignored
Pierre.
-
- Posts: 18
- Joined: Tue Feb 23, 2010 12:36 pm
Re: calling external programs with parameters
hello,
focussing the filename is working fine, but in the 'wrong' window of totalcommander.
'R' means = open the 'R'IGHT window of totalcommander, but the LEFT is opend.
the parameter /R="%1" is fully ignored
the settings in ini-file
Param_3=/O /T
and
Param_2=/O /T /R="%1"
both open the LEFT window. that's why i asked for 'hard-coded left window'. because there is no effect of R="%1". it's the same with or without: left window is opened (but the RIGHT should).
focussing the file and using an open totalcommander is ok in both settings.
thanks
focussing the filename is working fine, but in the 'wrong' window of totalcommander.
'R' means = open the 'R'IGHT window of totalcommander, but the LEFT is opend.
the parameter /R="%1" is fully ignored
the settings in ini-file
Param_3=/O /T
and
Param_2=/O /T /R="%1"
both open the LEFT window. that's why i asked for 'hard-coded left window'. because there is no effect of R="%1". it's the same with or without: left window is opened (but the RIGHT should).
focussing the file and using an open totalcommander is ok in both settings.
thanks
-
- Posts: 2
- Joined: Fri Apr 06, 2018 1:15 am
Re: calling external programs with parameters
Im having a hell of a time trying to get XnView to open rawtherapee with the parameter -R
I've used the Param_ variable. tried everything i could think of.
\-R , /-R, -R, "-R" , -R “%~1”
What am I doing wrong?
OpenWith]
OpenWith_0=C:\Program Files\Adobe\Adobe Bridge CC 2018\Bridge.exe
OpenWith_1=C:\Program Files\Adobe\Adobe Photoshop CC 2018\Photoshop.exe
OpenWith_2=C:\Program Files\RawTherapee\5.3\rawtherapee.exe
OpenWith_3=
Param_2= -R
I've used the Param_ variable. tried everything i could think of.
\-R , /-R, -R, "-R" , -R “%~1”
What am I doing wrong?
OpenWith]
OpenWith_0=C:\Program Files\Adobe\Adobe Bridge CC 2018\Bridge.exe
OpenWith_1=C:\Program Files\Adobe\Adobe Photoshop CC 2018\Photoshop.exe
OpenWith_2=C:\Program Files\RawTherapee\5.3\rawtherapee.exe
OpenWith_3=
Param_2= -R
-
- Author of XnView
- Posts: 45224
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: calling external programs with parameters
what change -R?philB wrote: What am I doing wrong?
Pierre.