< Home
Set mtime based on date string in filename

Given a group of files with the following naming convention:

datetime_restofname.txt

an example of which would be:

200906290700_somewordorphrase.txt

how could I batch change the mtime of the files to match the date and time in the filename?

by Miles
on 6/30/2009 11:56:14 PM

Stackoverflow.mobi is not affiliated with stackoverflow.com but uses their public data dump to provide mobile access to stackoverflow.com's data