Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
442 views
in Technique[技术] by (71.8m points)

how to Rename JPG files with Prefix of Date Taken

So I did a simple batch file to rename all my jpgs in a folder to include the date "2020 01 24" prefix to the filenames. It's working well so far if I want all the photos in the folder to have the same date prefix.

But I have folders of varying dates.

I am wondering if there's anyone that can help add in the code of my batch script to add the prefix of "date taken" in Windows Explorer. (there's date modified, date created and date taken. I would like "date taken" to be the prefix in YYYY MM DD format)

or perhaps incorporate exiftool?

Really appreciate any help on this!


@ECHO ON

for /f "tokens=*" %%a in ('dir /b *.jpg') do ren "%%a" "2020 01 24 %%a"

PAUSE

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...