Tuesday, January 3, 2012

Name files by last write date

I have a Samsung HMX-H200BP/XSA camcorder, which I am really happy with. However, according to exiftool, it does not seem to stamp the record date and time into the movie metadata. Instead, it relies on the last write date.

The PowerShell command below will bulk rename all the MP4 files in the current folder so that they are named by the date and time taken i.e. the last write date.

dir hdv_*.mp4 | % { ren $_.Name ($_.LastWriteTime.ToString('yyyy-MM-dd HH-mm') + '.mp4') }

0 comments:

Post a Comment