Output of .bat differs from commandline

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

Moderators: XnTriq, helmut, xnview

Post Reply
eturfboer

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
xnview
Author of XnView
Posts: 43598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Output of .bat differs from commandline

Post by xnview »

Use %% in a .bat
Pierre.
Post Reply