change directory date?

dbarton

Senior member
Apr 11, 2002
767
0
76

I have a bunch of directories that I want to set the *date* to be the same date as the files in that directory. Any util to do this, especially if it can be automated?

thanks very much
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Which date? Creation date, modification date, metadata change date? On a Linux system you can use the touch command to set any files date to any time you want.
 

dbarton

Senior member
Apr 11, 2002
767
0
76

windows..

i want to change the date dispalyed when you do a "dir" so i can sort directries by date the data was created.
 

Dahak

Diamond Member
Mar 2, 2000
3,752
25
91
dir has an option to list the files by date created oldest to newest. dir /O: D
no space between the : and D otherwise id get a smily


Hope that works for you
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Originally posted by: Dahak
no space between the : and D otherwise id get a smily

Sorry for being off-topic, but use the "do not parse emoticons" option when posting to prevent that.