calling external programs with parameters

How to use XnView. Post your question or ask for help, here.

Moderators: helmut, Olivier_G, Dreamer, XnTriq, xnview

calling external programs with parameters

Postby schwarol » Sun Jul 06, 2008 2:59 pm

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
schwarol
 

Re: calling external programs with parameters

Postby xnview » Tue Jul 15, 2008 11:51 am

Ok, i'll try to support parameters
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 16162
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Postby Guest » Thu Jul 17, 2008 12:52 pm

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
Guest
 

Re: calling external programs with parameters

Postby xnview » Fri Jan 09, 2009 11:04 am

Please try XnView 1.96 beta
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 16162
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: calling external programs with parameters

Postby walter_o » Tue Feb 23, 2010 1:26 pm

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

Re: calling external programs with parameters

Postby xnview » Tue Feb 23, 2010 3:36 pm

Please use Param_? with OpenWith_?
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 16162
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: calling external programs with parameters

Postby walter_o » Tue Feb 23, 2010 4:01 pm

xnview wrote:Please use Param_? with OpenWith_?


yes, but where is it.

i searched the xnview.ini, the forum, all ...
walter_o
 
Posts: 12
Joined: Tue Feb 23, 2010 12:36 pm

Re: calling external programs with parameters

Postby xnview » Tue Feb 23, 2010 4:13 pm

walter_o wrote:
xnview wrote:Please use Param_? with OpenWith_?

yes, but where is it.

Add it.
OpenWith_1=...
Param_1=...
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 16162
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: calling external programs with parameters

Postby walter_o » Tue Feb 23, 2010 4:48 pm

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

Re: calling external programs with parameters

Postby walter_o » Tue Feb 23, 2010 10:37 pm

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

Re: calling external programs with parameters

Postby walter_o » Thu Mar 18, 2010 10:02 pm

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

Re: calling external programs with parameters

Postby xnview » Fri Jun 04, 2010 1:27 pm

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

Re: calling external programs with parameters

Postby walter_o » Sat Jun 19, 2010 4:52 pm

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


Return to General Support

Who is online

Users browsing this forum: No registered users and 3 guests