Skip to main content

ExifTool

 

แก้ปัญหา date create file หลังจากกู้ข้อมูลมาแล้วเป็นวันที่กู้ ให้ดึงข้อมูลจากชื่อไฟล์ที่เป็น format ddmmyyy hhmmss หรือใกล้เคียง

How can I edit EXIF Data based on the filename?

Using ExifTool, the command you want to use is listed in ExifTool FAQ #5

exiftool "-alldates<filename" /path/to/files/

This command creates backup files. Add -overwrite_original to suppress the creation of backup files. Add -r to recurse into subdirectories.

 

To change the file's modification date to the "date taken" using ExifTool, run the command 

exiftool "-FileModifyDate<DateTimeOriginal" "DIR"

 

where DIR is the folder containing your images. This command copies the DateTimeOriginal tag, which is the "date taken" metadata, to the FileModifyDate tag, updating the file's modification timestamp