Thursday, July 31, 2014

windows - Change CreationTime using the file name

I name all of my home video files according to an exact protocol. An example is: Aug 09,2005@13.21.12.mp4


Typically, the original file is not an mp4 so I go through the process of converting, which changes the Date Created property. Although I can go in and change each one individually, I would like to use a batch file, either via a CMD prompt or powershell that extracts the date and time implied in the file name and changes the Date Created property. I currently do this in two steps.



  1. The CMD script here https://stackoverflow.com/questions/9946293/batch-set-date-time-attribute-according-to-the-names-of-the-files-in-a-folder only seems to change the Date Modified.

  2. I use PowerShell to set the Date Created = to the Date Modified. I would like to get rid of one of these steps. All help greatly appreciated.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...