DirDate Help, crazy specific issue!

Discuss our other products here. Get help with installation and running, notify us of bugs, request new features and enhancements.

Moderators: DataMystic Support, Moderators

thegreatyashu
Posts: 2
Joined: Tue Jul 03, 2012 8:43 am

DirDate Help, crazy specific issue!

Postby thegreatyashu » Tue Jul 03, 2012 10:37 am

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.

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: DirDate Help, crazy specific issue!

Postby DataMystic Support » Tue Jul 03, 2012 5:26 pm

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\*.*
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

thegreatyashu
Posts: 2
Joined: Tue Jul 03, 2012 8:43 am

Re: DirDate Help, crazy specific issue!

Postby thegreatyashu » Wed Jul 04, 2012 10:59 am

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.


Return to “FileWatcher, DirDate and other Support”

Who is online

Users browsing this forum: No registered users and 1 guest