Page 1 of 1

Export bach for NConvert: wrong value of -o option

Posted: Sun Jul 17, 2005 5:09 pm
by Martin Trcka
If I try to export batch for NConvert the resulting command has wrong value of -o parameter (output filename). NConvert does not do desired operation because of "Error: Can't create file".

Step to reproduce problem:
* Run XnView, select several images
* Tools -> Batch convert
* select some output directory, e. g. "C:\temp"
* Hit "Export batch for NConvert..." button and choose some filename, e. g. "convert.bat"

When you tries to run convert.bat, you get one error for each file in selection:

Error: Can't create file (C:\temp)

The problem is that convert.bat contains this command:
nconvert [some_options] -o C:\temp [list_of_files]

According to NConvert help, option -o needs filename, not just directory name. Therefore, the -o part of command should look like

-o C:\temp\%%.jpg

(the extension depends of selected output format)

Re: Export bach for NConvert: wrong value of -o option

Posted: Mon Jul 18, 2005 8:22 am
by xnview
Martin Trcka wrote:If I try to export batch for NConvert the resulting command has wrong value of -o parameter (output filename). NConvert does not do desired operation because of "Error: Can't create file".

Step to reproduce problem:
* Run XnView, select several images
* Tools -> Batch convert
* select some output directory, e. g. "C:\temp"
* Hit "Export batch for NConvert..." button and choose some filename, e. g. "convert.bat"

When you tries to run convert.bat, you get one error for each file in selection:

Error: Can't create file (C:\temp)

The problem is that convert.bat contains this command:
nconvert [some_options] -o C:\temp [list_of_files]

According to NConvert help, option -o needs filename, not just directory name. Therefore, the -o part of command should look like

-o C:\temp\%%.jpg

(the extension depends of selected output format)
Ok, i'll change it