calling external programs with parameters

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, helmut, xnview

schwarol

calling external programs with parameters

Post 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
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: calling external programs with parameters

Post by xnview »

Ok, i'll try to support parameters
Pierre.
Guest

Post 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
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: calling external programs with parameters

Post by xnview »

Please try XnView 1.96 beta
Pierre.
walter_o
Posts: 18
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Post 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
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: calling external programs with parameters

Post by xnview »

Please use Param_? with OpenWith_?
Pierre.
walter_o
Posts: 18
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Post by walter_o »

xnview wrote:Please use Param_? with OpenWith_?
yes, but where is it.

i searched the xnview.ini, the forum, all ...
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: calling external programs with parameters

Post by xnview »

walter_o wrote:
xnview wrote:Please use Param_? with OpenWith_?
yes, but where is it.
Add it.
OpenWith_1=...
Param_1=...
Pierre.
walter_o
Posts: 18
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Post 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
walter_o
Posts: 18
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Post 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
walter_o
Posts: 18
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Post 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 ?
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: calling external programs with parameters

Post 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?
Pierre.
walter_o
Posts: 18
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Post 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
philB
Posts: 2
Joined: Fri Apr 06, 2018 1:15 am

Re: calling external programs with parameters

Post 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
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: calling external programs with parameters

Post by xnview »

philB wrote: What am I doing wrong?
what change -R?
Pierre.
Post Reply