Page 1 of 1

Output of .bat differs from commandline

Posted: Tue Mar 25, 2008 1:28 pm
by eturfboer
Hello all,

I am trying to use NConvert to create a series of file conversions. I want to steer them with a .bat file. I have the following command in the commandline promt:

Code: Select all

nconvert -out jpeg -ratio -resize 500 500 -o slides\%.jpg originals\*.jpg
That creates the desired jpeg files. However when I paste this line in a text file and save that as an .bat file an run it then the output differs. The '%' tag isn't recognized and thereby creating files with the name '.jpg'. That is, I have one file left at the end.

I am not very experienced with .bat files. Is there any solution?

Re: Output of .bat differs from commandline

Posted: Tue Mar 25, 2008 3:14 pm
by xnview
Use %% in a .bat