ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:44 AM

Title: Multiline parameter input in Windows?
Post by: Archive on May 12, 2010, 08:54:44 AM
[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:

Code:
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
Title: Re: Multiline parameter input in Windows?
Post by: Archive on May 12, 2010, 08:54:44 AM
[Originally posted by davitof on 2010-01-05 10:38:17-08]

Looks like a Windows bug, even
Code:
dir ^
 "*.bat" ^
does the same. I have a hunch you can't use a caret after a double quote.
Title: Re: Multiline parameter input in Windows?
Post by: Archive on May 12, 2010, 08:54:44 AM
[Originally posted by davitof on 2010-01-05 10:51:45-08]

Ok, I just found the way to get around it:
Code:
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.
Title: Re: Multiline parameter input in Windows?
Post by: Archive on May 12, 2010, 08:54:44 AM
[Originally posted by djeyewater on 2010-01-05 19:34:51-08]

Thanks for the help!

Dave