ARGH!! Command works but not in batch file?!!
Posted: 2013-09-06T07:35:16-07:00
I'm running a basic convert command, which works perfectly when I type/copy it into DOS;
convert c:\Photo_Uploads\camera\*.jpg -resize 20% -set filename:fname '%t_tn' +adjoin z:\%[filename:fname].jpg
All it does is resize the jpg's and move them to another folder. If I use this command in a batch file, it fails with the following error;
convert.exe: invalid argument for option `-resize': 20fname @ error/convert.c/ConvertImageCommand/2451.
So it looks like it doesn't even call the whole command before failing. I can't figure it out and am at my wits end. If anyone can suggested anything I'd be in their debt!!
convert c:\Photo_Uploads\camera\*.jpg -resize 20% -set filename:fname '%t_tn' +adjoin z:\%[filename:fname].jpg
All it does is resize the jpg's and move them to another folder. If I use this command in a batch file, it fails with the following error;
convert.exe: invalid argument for option `-resize': 20fname @ error/convert.c/ConvertImageCommand/2451.
So it looks like it doesn't even call the whole command before failing. I can't figure it out and am at my wits end. If anyone can suggested anything I'd be in their debt!!