[Originally posted by djeyewater on 2010-01-05 09:49:21-08]Does anyone know how I can split the parameters I want to send to exiftool over multiple lines in the Windows commandline?
I tried using the caret ^ at the end of each line to escape it, but it seems Windows ignores it after the input file parameter is specified, and instead sends it as a parameter to exiftool:
E:\Useful progs etc\Image\Image-ExifTool-8.03>exiftool.pl ^
More? -tagsfromfile ^
More? "C:\Users\Rusty\Desktop\_DSC3689.xmp" ^
Warning: Superfluous BOM at start of XMP - C:\Users\Rusty\Desktop\_DSC3689.xmp
Error: File not found - ^
0 image files updated
1 files weren't updated due to errors
Using -@ argfile, and then putting my multiline arguments in an arg file works fine for my purposes, but I was wondering if Windows' behaviour here was a problem with Windows? Linux doesn't have any problem, but I haven't been able to find any info mentioning this problem with Windows.
Thanks
Dave
[Originally posted by davitof on 2010-01-05 10:38:17-08]Looks like a Windows bug, even
dir ^
"*.bat" ^
does the same. I have a hunch you can't use a caret after a double quote.
[Originally posted by davitof on 2010-01-05 10:51:45-08]Ok, I just found the way to get around it:
dir ^
^"*.bat^" ^
/w
works. What may not be immediately obvious is that in the second line there must be spaces before the first caret and after the last.