nconvert %conv%%

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

Moderators: helmut, XnTriq, xnview

Post Reply
erik@sea
Posts: 4
Joined: Wed Apr 06, 2011 9:59 am

nconvert %conv%%

Post by erik@sea »

hello all,
I'm using windows xp and want to use nconvert to extract a piece from a picture and rename the file, but running the bat file doesn't work. The command is simply
nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out tiff -o %conv%%.tif -crop 0 0 1435 1435 "D:\myfile.tif"

I guess the % sign is read wrongly by cmd. If I use %%conv%% it works, but then the name becomes myfileconvmyfile.tif.

What do I use to get myfile_conv.tif?

thanks for any help
Erik
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert %conv%%

Post by xnview »

%%_conv.tif
Pierre.
erik@sea
Posts: 4
Joined: Wed Apr 06, 2011 9:59 am

Re: nconvert %conv%%

Post by erik@sea »

:) great, thanks very much.
Erik
Post Reply