代码之家  ›  专栏  ›  技术社区  ›  the hand of NOD

exiftool系统找不到路径

  •  0
  • the hand of NOD  · 技术社区  · 6 年前

    我想使用exiftool将一个目录中的文件名更改为创建时间(我在windows10上)。

    • 我按照建议在C:\Windows下“安装”了exiftool。
    • 我还为exiftool设置了路径。
    • 我在路径下创建了一个目录 C:\testordner 我复制了所有 将我的文件放入。
    • 我在windows中打开了命令行。

    当我输入命令时: C:\testordner>exiftool . 一切正常,我得到了这个目录中所有文件的exif数据。 当我输入命令时: C:\testordner>exiftool IMG_0160.JPG 它也起作用。

    C:\testordner>exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" .
    

    当我尝试运行这个命令时,我总是得到错误消息:“System cannot find the specified file”(德语:Das System kann die angegebene Datei nicht finden)

    我也试过:

    C:\testordner>exiftool '-FileName<CreateDate' -d %Y-%m-%d_%H.%M.%S%%.%%le .
    

    我做错了什么?我不明白。

    1 回复  |  直到 6 年前
        1
  •  2
  •   StarGeek    4 年前

    从exiftool主页, Running in Windows :

    请注意,在“cmd.exe”shell中键入命令时,应使用双引号而不是单引号,如某些示例所示

    在Windows CMD下,将单引号改为双引号,命令就可以正常工作。