76d Subj : Re: Renaming/dating directories FTP server (date) on content directorie To : CBFalconer From : Steve Date : Sun Dec 02 2001 03:39 am From: "E. S. (Steve) Fabian" CBFalconer wrote: > > "E. S. (Steve) Fabian" wrote: > > Invocation: makedir dir date time > > > > NB: Every method of creating a FAT/VFAT/FAT32 subdirectory has this > > limitation. Don't know about NTFS. > > Slight improvement (note md command): > > @echo off > setlocal > set d=%_date > set t=%_time > echo %2 | date >nul > echo %3 | time >nul > md %1 > echo %t | time >nul > echo %d | date >nul > > Needs some complications to validate parameters and/or to take > input from the output of "dir /a:d". > Assume: 1) the system clock can be manually reset when the rebuilding is complete, AND 2) the system does not allow net access until the rebuilding is complete, AND 3) the directory names contain no "funny characters", e.g., space, tab,|,>,<,etc., AND 4) there is a file named OLD_DIR.CAT containing lines of the format below: 2001-05-21 14:51 original_directory Faster approach: @echo off *setlocal *unalias /q * do d in @OKD_DIR.CAT echo %@word[0,%d] | date >nul echo %@word[1,%d] | time >nul md /n %@word[-0,%d] enddo pause Reset system date and time date time endlocal NOTE that md /n will not update JPSTRRE.IDX for each directory created. If Fuzzy CD is used, you should run cdd /s after the driectory tree is created, but before it is populated for best performance. -- E. S. "Steve" Fabian ESFabian@BellAtlantic.net POB 1540, Cherry Hill, NJ 08034 Telephone: 856-354-1752 EMPIRE Consultants, Inc. Director, Software Development ------------------------------------------------------------------- --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) . 0