Subj : Re: XCOPY or COPY To : aria1946 From : Steve Date : Tue Feb 26 2002 02:38 pm From: Steve@f3.n342.z1.cereal.mv.com (Steve) Subject: Re: XCOPY or COPY From: "E. S. (Steve) Fabian" aria1946@hotmail.com.spoo wrote: > > Since from day one I've used H: only as a repository for my E: drive, > I didn't really care what method I used to create the backup, as long > as it worked. > Presuming that the deletion rate is much less than the retention rate, a simple 4DOS batch program could be used to prune the unwanted files from H: (along with directories which became empy), after which the "copy /u /s" command could be used: for /a:-d /r h:\ %f in (*.*) if not exist E%@instr[1,%@full[%f]] del/xy %f del/s/x/a:d e:\ copy /s /u e:\*.* h:\ N O T T E S T E D ! The advantage, of course, is that presumably the time saved by not formatting and not copying old files is less than the additional time needed to remove "leftovers". It might also be useful to have some form of validation, e.g., a comparion of CRCs. -- E. S. "Steve" Fabian ESFabian@BellAtlantic.net POB 1540, Cherry Hill, NJ 08034 Telephone: 856-354-1752 EMPIRE Consultants, Inc. Director, Software Development ------------------------------------------------------------------- -- |Fidonet: Steve 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .