DirDate is a command line tool that can easily be automated to change folder and file last modification date, creation date or last access date. It can change dates using either a reference file (where you can 'lift' the date from an existing file), the current date/time or a series of YEAR, MONTH, DAY, HOUR, MIN, SEC and MSEC commands. It can process files in subfolders, and it has a preview mode so that you can see which files will be modified. You can set file date and times right down to the 0.1 microseconds (100 nanosecond increments), or even tweak existing times up and down.
from Joe Winograd, Home User I was working on a large project in which I had to change the date stamps on thousands of files in an automated fashion. I needed a robust solution that could change both the creation date and the modified date simultaneously, and do it on files with the read-only attribute set (as well as files that weren't read-only). I tried the evaluation version of DirDate and ran into some bumps along the way, but the support folks at DataMystic provided both fixes and new features immediately after I emailed them. Within five days of downloading the trial version, I purchased the licensed version and successfully completed the project of changing the date stamps on nearly 5,000 files. Thank you, DirDate! And thank you, DataMystic technical support team!
Simple example - set all file creation dates to Christmas day:
Simple example 4 - copy file creation dates from one set of folders to another:
dirdate.exe -report -r -CREATION *.* > report.bat
Then just copy report.bat to the new folder and run it!
Very complex example - use the following DOS .BAT command (this will NOT work from the command line) to alter the creation date of all .WAV files on drive X: to the creation date of a correspondingly-named .WMA reference file.
FOR %%A IN (x:\*.wav) DO dirdate -CREATION "filec=x:\%%~nA.WMA" "x:\%%~nA.wav"
This example (again, only works in a batch file) sets the creation date (-CREATION) to the modified date of the reference file (FILE=)
FOR /R %%A IN (*.*) DO dirdate -CREATION file="%%A" "%A"
DirDate runs under Microsoft® Windows® 95, 98, ME, NT, 2000, XP, 2003 Server, Windows Vista® and Vista 64. DirDate also comes with a 16-bit version for DOS and Windows 3.1, which can be used to change folder, volume label and file entry dates, file sizes and attributes under Windows 3.1 and DOS using direct disk writes, and it is the only application that can change DOS folder dates using direct disk writes.
If you use RoboCopy, DirDate can be used to restore the original file created and last modified dates from RoboCopy's default date of '02.01.1980'.
from Jim van Zee, Seattle, WA
Since DOS (and WinXX) always uses the current date when creating directories, an enormous mis-match occurs when installing "vintage" programs. DIRDATE allows one to quickly change the directory dates/times to match the files within those directories. It's Wonderful! Screen shot
from another user
It is really a nice tool, i need to change the the last access date for around 1000 files. Manually it would take hours, but with this i could do it in just 2 min. Again it is fine utility for Windows Environment. Features
* Can easily be automated to run as part of an unattended process. * Supports recursion into subdirectories. * Can change the last modification date, creation date or last access date of BOTH files AND folders/directories * Supports wildcards. * Can use a reference file's time and date. * Can set to current date and time. * Fast! Change 900,000 files in 22 minutes! * Can change any part of the date or time without affecting the other parts. * Has a preview mode where no changes are actually made.
According to the Microsoft website, NTFS delays updates to the last access time for a file by up to one hour after the last access. Also note that right-clicking the file in Explorer counts as an access. To see the genuine last access time, use
* Basically IT'S GREAT! All my wishes come true! Amazing! * DIRDATE is sure a NEAT program! I am so happy to have it! * Boy - I can't begin to tell you how happy I am to have DirDate! I'm one of those unfortunate people who really like my file dates to *mean* something (ergo: another reason to dislike Unix, which can't even keep the same date when it copies a file). It has been a VERY long-standing irritation that when you install a program the directories all get the current date - even if the program itself is years old. Now I can fix that - and I've been happily doing so! * I had been looking for this kind of utility for months (I am a software reviewer--published in BYTE--and a multimedia consultant for Microsoft, among other places), and I am delighted you did this. * Was looking for a version of TOUCH that would allows modifying directories, and I came across your DIRDATE * DirDate is exactly what I've been looking for for ages!! * I have been looking for a way to change dos-directory-attributes for some time. Now I found your interesting program... * I downloaded your directory date program a few days ago. I'd been looking for such a program for a while. I'm using a dos/w3.1 operating system, with 4dos. I'm quite happy to relay the news it worked perfectly for me. For me, there's nothing to compare to a small, good program that does exactly what it should with out a ton of useless bells and whistles. The price was good too! Hope to see more of your work in the future.
Ce programme permet modifier la date de création, la date de modification et/ou la date du dernier accès au fichier. Il fonctionne en ligne de commande. On peut réaliser une opération en mode batch sur plusieurs fichiers en même temps. Les fonctions typiques sont:
* changer la date des fichiers à partir de la date de création ou de modification d'un autre fichier, * changer la date à partir d'une date donnée * écrire la date de modification dans la date de création du fichier
C'est très utile sous windows.
Une copie de répertoire à répertoire crée des nouveaux fichiers et la date de création est forcément modifiée, mise à la date courante. On peut corriger cela en copiant la date de modification dans la date de création qui est souvent la date du cliché dans un lot de photos.
A noter que ce programme est pleinement fonctionnel, mais limité à 30 jours d'utilisation dans sa version d'essai.