Page 1 of 1

run external programs

Posted: Fri Jan 31, 2014 10:51 am
by yasakamarkv
Hi, I'm using XnView 2.13.
To do a special rename operation on my pictures, I wrote a litte java program (runnable jar) and added it to XnView (Tools->Open With->Add Program...).
If I select objects in the viewer and press ALT+1, my java progam starts and XnView passes the names of the selected objects to it, but with two limitations:
1) only a maximum of 20 filenames are passed.
2) no directory names are passed (if I select only directories, the program doesn't start all all).

You can test this behaviour easily with the following windows batch file:
echo off
echo %*
pause

Is there a chance to change this behaviour for added programs?

Thank you.

Re: run external programs

Posted: Fri Jan 31, 2014 1:26 pm
by xnview
yasakamarkv wrote: 1) only a maximum of 20 filenames are passed.
you can change in xnview.ini [General]/OpenWithMax
2) no directory names are passed (if I select only directories, the program doesn't start all all).
yes currently only files

Re: run external programs

Posted: Mon Feb 03, 2014 10:24 am
by yasakamarkv
I have changed my xnview.ini:
[Start]
OpenWithMax=999

and it works.
Thanks.