自己写出来了,貌似没啥问题。- @echo off
- setlocal enabledelayedexpansion
- for /f "delims=" %%i in ('dir /b /a-d *.jpg ') do (
- set old=%%~ni
- for /f "delims=" %%j in ('d:\exiftoolgui\exiftool -d "%%Y%%m%%d %%H%%M%%S" -DateTimeOriginal -S -s %old%.jpg') do set new=%%j
- mv "!old!.jpg" "!new!.jpg"
- mv "!old!.mov" "!new!.mov"
- )
复制代码
|