文件名类似 IMG_20120915_133226.jpg
C:\tt\ 表示文件路径
exiftool -r “-datetimeoriginal<${filename;s/(\d{2})-(\d{2})-(\d{2})_(\d{2})(\d{2})/20$3:$2:$1 $4:$5/}" C:\tt\ 把文件名称写入到 拍摄时间 exiftool -r “-filemodifydate<${filename;s/(\d{2})-(\d{2})-(\d{2})_(\d{2})(\d{2})/20$3:$2:$1 $4:$5/}" "C:\tt\" 把文件名称写入到 修改时间
其中 c:\tt 就是照片的路径