【问题标题】:Executing an exiftool command inside a .bat file在 .bat 文件中执行 exiftool 命令
【发布时间】:2018-09-27 00:28:58
【问题描述】:

我在这里找到了 exiftool 的以下命令行表达式:Extract thumbnail from jpeg file

exiftool -a -b -W %d%f_%t%-c.%s -preview:all YourFileOrDirectory

该命令在命令行上运行良好,但在以下批处理程序中运行时,百分号似乎被误解了,我不知道如何让它接受它。有人可以告诉我如何为批处理编写此命令。

::  This exif command will create a file in the same directory as the one
::  where the original photo is located that contains all the thumbnail
::  images contained in the file's exif data. The exact path to the original
::  must be specified in this command.
cd\  
exiftool -a -b -W %d%f_%t%-c.%s -preview:all c:\users\cher\pictures\one.jpg
pause 

【问题讨论】:

    标签: batch-file exiftool


    【解决方案1】:

    exiftool FAQ 27

    在 Windows .BAT 文件中,“%”字符很重要,因此 ExifTool 命令中的所有“%”字符都必须更改为“%%”。

    【讨论】:

    • 像冠军一样工作。我知道这是一个薄弱的问题,但我不想玩 exiftool 命令只是猜测并搞砸了。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2021-09-08
    • 2015-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-19
    • 2018-11-28
    • 2012-08-06
    相关资源
    最近更新 更多