Page 1 of 2
calling external programs with parameters
Posted: Sun Jul 06, 2008 2:59 pm
by schwarol
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
Re: calling external programs with parameters
Posted: Tue Jul 15, 2008 11:51 am
by xnview
Ok, i'll try to support parameters
Posted: Thu Jul 17, 2008 12:52 pm
by Guest
great - thank you very much.
may be there is an alternate/additional solution within your tree-view: There is 'explorer' fixed and no way to add other file-managers.
but a call within your toolbar with parameters is more than ok.
thank you once more
Re: calling external programs with parameters
Posted: Fri Jan 09, 2009 11:04 am
by xnview
Re: calling external programs with parameters
Posted: Tue Feb 23, 2010 1:26 pm
by walter_o
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
Re: calling external programs with parameters
Posted: Tue Feb 23, 2010 3:36 pm
by xnview
Please use Param_? with OpenWith_?
Re: calling external programs with parameters
Posted: Tue Feb 23, 2010 4:01 pm
by walter_o
xnview wrote:Please use Param_? with OpenWith_?
yes, but where is it.
i searched the xnview.ini, the forum, all ...
Re: calling external programs with parameters
Posted: Tue Feb 23, 2010 4:13 pm
by xnview
walter_o wrote:xnview wrote:Please use Param_? with OpenWith_?
yes, but where is it.
Add it.
OpenWith_1=...
Param_1=...
Re: calling external programs with parameters
Posted: Tue Feb 23, 2010 4:48 pm
by walter_o
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
Re: calling external programs with parameters
Posted: Tue Feb 23, 2010 10:37 pm
by walter_o
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
Re: calling external programs with parameters
Posted: Thu Mar 18, 2010 10:02 pm
by walter_o
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 ?
Re: calling external programs with parameters
Posted: Fri Jun 04, 2010 1:27 pm
by xnview
walter_o wrote:i tried XnView v 1.9.2 now. but there is the same problem: the parameter /R="%1" is fully ignored
/O /T /R="%1" will be used when launching TC, i think that you would like that %1 is replaced by filename?
Re: calling external programs with parameters
Posted: Sat Jun 19, 2010 4:52 pm
by walter_o
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
Re: calling external programs with parameters
Posted: Fri Apr 06, 2018 1:18 am
by philB
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
Re: calling external programs with parameters
Posted: Fri Apr 06, 2018 5:27 am
by xnview
philB wrote:
What am I doing wrong?
what change -R?