在 .bat 文件中执行 exiftool 命令
Executing an exiftool command inside a .bat file
我在这里找到了 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
在 Windows.BAT 文件中,“%”字符很重要,因此 ExifTool 命令中的所有“%”字符都必须更改为“%%”。
我在这里找到了 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
在 Windows.BAT 文件中,“%”字符很重要,因此 ExifTool 命令中的所有“%”字符都必须更改为“%%”。