mugil_cephalus
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Simple example - set all file creation dates to Christmas day: dirdate -CREATION date=12/25/2000 time=12:00:00 *.*Simple example 2 - add 10 minutes to file modification dates: dirdate -MODIFIED ADD=6000000000 *.*Simple example 3 - reset folder dates to the date of the oldest file (e.g. after you copy photos to a new computer) dirdate -r -diroldest "c:\My Documents\My Pictures"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® Windows 7 and x64, Vista®, Vista 64, 2008/2003 Server, XP, 2000, NT, ME, 95/98. 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'. |