Ok, I have been searching for software that can do this, and maybe DirDate can, but I need help creating the cmd line syntax and such.
I have a directory with over 6,000 folders inside. I need to give each folder a date that roughly matches the files inside. I know that DirDate has a command to do this with a single folder path. One path at a time with over 6000 individual paths would take, literally forever. I need to run it on the main directory so that each sub-directory timestamp matches that of the earliest file contained in that sub-directory. I want to give the 6000 folders new dates that match up with the files they contain.
How would I set this command up? Is this even possible? I have been trying to figure out how to do this for a long time... please help.
DirDate Help, crazy specific issue!
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: DirDate Help, crazy specific issue!
To set folders in a tree to the date of the oldest/newest file, use:
dirdate -r -diroldest c:\whatever\*.*
or
dirdate -r -dirnewest c:\whatever\*.*
dirdate -r -diroldest c:\whatever\*.*
or
dirdate -r -dirnewest c:\whatever\*.*
-
- Posts: 2
- Joined: Tue Jul 03, 2012 8:43 am
Re: DirDate Help, crazy specific issue!
Thankyou, it is so simple it is elegant!
I bought the software and it worked perfectly. This will be a tool I will be sure to keep handy from now on. I have been trying to figure out a good way to do that for a long time.
I bought the software and it worked perfectly. This will be a tool I will be sure to keep handy from now on. I have been trying to figure out a good way to do that for a long time.