Page 1 of 1

nconvert %conv%%

Posted: Wed Apr 06, 2011 1:23 pm
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

Re: nconvert %conv%%

Posted: Thu Apr 07, 2011 9:03 am
by xnview
%%_conv.tif

Re: nconvert %conv%%

Posted: Thu Apr 07, 2011 11:14 am
by erik@sea
:) great, thanks very much.
Erik