-multi in code prevents creation of output folder

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
cday
XnThusiast
Posts: 2569
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

-multi in code prevents creation of output folder

Post by cday »

When -multi is included in code an output folder that doesn't already exist isn't created when the script is run:

This code runs and creates the 'output' folder if it doesn't exist:

Code: Select all

nconvert -out pdf -o output\test.pdf test_1.jpg test_2.jpg
This code fails with the message "Can't create file" if the 'output' folder doesn't already exist:

Code: Select all

nconvert -multi -out pdf -o output\test.pdf test_1.jpg test_2.jpg
Note that the above tests have been run as described in this post but that kewbsl has tested using full paths.
Post Reply