run external programs
Posted: Fri Jan 31, 2014 10:51 am
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.
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.