Windows 我希望mp4文件的拍摄日期是xml文件名
在Windows 10环境中,我想将“扩展名为mp4的文件”和“扩展名为xml的文件”的名称更改为mp4文件的拍摄日期Windows 我希望mp4文件的拍摄日期是xml文件名,windows,mp4,batch-rename,exiftool,Windows,Mp4,Batch Rename,Exiftool,在Windows 10环境中,我想将“扩展名为mp4的文件”和“扩展名为xml的文件”的名称更改为mp4文件的拍摄日期 C0001.MP4 C0001M01.XML C0002.MP4 C0002M01.XML 具体来说,我想更改文件名,如下所示 2019-10-23_13-10-32.MP4 2019-10-23_13-10-32.XML 2019-10-23_13-10-49.MP4 2019-10-23_13-10-49.XML 我试着认为使用ext选项会得到预期的结果,但我没有得到
C0001.MP4
C0001M01.XML
C0002.MP4
C0002M01.XML
具体来说,我想更改文件名,如下所示
2019-10-23_13-10-32.MP4
2019-10-23_13-10-32.XML
2019-10-23_13-10-49.MP4
2019-10-23_13-10-49.XML
我试着认为使用ext选项会得到预期的结果,但我没有得到预期的结果。 第一次
C:\Users\user>exiftool "-FileName<CreateDate" -d "%Y-%m-%d_%H-%M-%S%%-c.%%e" -ext "xml" C:\hoge
Warning: [minor] Error 3 placing ::NonRealTimeMetaLtcChangeTableLtcChangeStatus in structure or list - C:/hoge/C0001M01.XML
Warning: No writable tags set from C:/hoge/C0001M01.XML
Warning: [minor] Error 3 placing ::NonRealTimeMetaAudioFormatAudioRecPortTrackDst in structure or list - C:/hoge/C0002M01.XML
Warning: No writable tags set from C:/hoge/C0002M01.XML
1 directories scanned
0 image files updated
2 image files unchanged
我认为错误在于
exiftool
没有在目录中找到xml
文件的元数据。我明白了。我意识到我被误解了。在文本中添加了一个新问题。请查看下的高级功能,以获取有关如何修改%f
变量的详细信息。我还没有测试过它,但我认为%-.3f
可能可以。这将从XML文件名的名称中删除最后3个字符(不包括扩展名)。
C:\Users\user>exiftool "-FileName<CreateDate" -d "%Y-%m-%d_%H-%M-%S%%-c.%%e" -ext "*" C:\hoge
Warning: [minor] The ExtractEmbedded option may find more tags in the movie data - C:/hoge/C0001.MP4
Warning: [minor] Error 3 placing ::NonRealTimeMetaLtcChangeTableLtcChangeStatus in structure or list - C:/hoge/C0001M01.XML
Warning: No writable tags set from C:/hoge/C0001M01.XML
Warning: [minor] The ExtractEmbedded option may find more tags in the movie data - C:/hoge/C0002.MP4
Warning: [minor] Error 3 placing ::NonRealTimeMetaAudioFormatAudioRecPortPort in structure or list - C:/hoge/C0002M01.XML
Warning: No writable tags set from C:/hoge/C0002M01.XML
1 directories scanned
2 image files updated
2 image files unchanged
C:\Users\user>exiftool -TagsFromFile %d%f.mp4 "-FileName<CreateDate" -ext xml C:\hoge
Warning: Error opening file - C:/mp4data/C0001M01.mp4
Warning: Error opening file - C:/mp4data/C0002M01.mp4
1 directories scanned
0 image files updated
2 image files unchanged
C0001.MP4
C0001M01.XML
C0002.MP4
C0002M01.XML