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