Subj : Renaming/dating directories FTP server (date) on content directorie To : CBFalconer From : Gerald Miller Date : Sat Dec 01 2001 11:44 pm Hello Chuck, Sunday December 02 2001 03:20, CBFalconer wrote to Steve: C> From: CBFalconer C> "E. S. (Steve) Fabian" wrote: >> reply@newsgroup.please wrote: >> > Situation: disk for FTP server crashes. All directories >> > have to be recreated. But they now get all the same date >> > (today). For users this is irritating, because now they >> > cann't check whether a (sub)directory has been added. >> > I would like to re*date* all (sub)directories on basis of >> > the content of the folders: be it on the biggest .exe file >> > or date of the file with the most recent date. >> > Can this be done using 4Dos ? >> Unfortunately, the underlying OS treats directory files >> differently than other files. Thus the only way to create a >> subdirectory with a specific date and time is to change the >> system date and time. Tedious, but you can automate it in >> 4DOS; the biggest problem is that of restoring the proper >> date and time when done. >> Invocation: makedir dir date time >> @echo off >> setlocal >> set d=%_date >> set t=%_time >> echo %2 | date >> echo %3 | time >> md %dir >> echo %t | time >> echo %d | date >> NB: Every method of creating a FAT/VFAT/FAT32 subdirectory has this >> limitation. Don't know about NTFS. C> Slight improvement (note md command): C> @echo off C> setlocal C> set d=%_date C> set t=%_time C> echo %2 | date >nul C> echo %3 | time >nul C> md %1 C> echo %t | time >nul C> echo %d | date >nul C> Needs some complications to validate parameters and/or to take input C> from the output of "dir /a:d". C> -- C> Chuck F (cbfalconer@yahoo.com) (cbfalconer@XXXXworldnet.att.net) C> Available for consulting/temporary embedded and systems. C> (Remove "XXXX" from reply address. yahoo works unmodified) C> mailto:uce@ftc.gov (for spambots to harvest) This is all very similar to what Ralf Brinkmann of 2:244/2122 posted on June 21st 1999 at 22:00 to Greg Chapman as TOUCHDIR.BTM..... Tom Hall stated: "Congratulations -- your computer clock is now ..00001 seconds slow..... :-)" Do you know of a method to factor in the .00001 seconds to maintain the correct clock time? Cheers ... Gerald --- GoldED+/386 1.1.5-20011130 * Origin: Condominiums are not effective birth control. (1:342/512) .