Correct syntax in the Windows CMD - help

Started by Sunny, December 02, 2024, 03:53:47 AM

Previous topic - Next topic

Sunny

I can't get it to work in the CMD line

exiftool -t -gpsposition -c %%.6f° test.jpg > out.txt
or
exiftool -csv -gpsposition -c %%.6f° test.jpg > out.csv

Probably it's the quotes but I've tried various combinations and nothing helps.

A CSV file is created but with this content
SourceFile,GPSPosition
test.jpg,"%.6f° S, %.6f° W"

Code run from BAT file works  ::)

EDIT:
Everything is working now. For cmd one character (%) for bat two (%%)

exiftool -t -gpsposition -c %.6f° test.jpg > out.txt
or
exiftool -csv -gpsposition -c %.6f° test.jpg > out.csv




StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype