Output of .bat differs from commandline

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

Moderators: XnTriq, xnview

Post Reply

Output of .bat differs from commandline

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

Re: Output of .bat differs from commandline

Post by xnview »

Use %% in a .bat
Post Reply