run external programs

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

Moderators: helmut, XnTriq, xnview

Post Reply
yasakamarkv
Posts: 2
Joined: Fri Jan 31, 2014 10:02 am

run external programs

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

Re: run external programs

Post 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
Pierre.
yasakamarkv
Posts: 2
Joined: Fri Jan 31, 2014 10:02 am

Re: run external programs

Post by yasakamarkv »

I have changed my xnview.ini:
[Start]
OpenWithMax=999

and it works.
Thanks.
Post Reply