Subj : Re: XCOPY or COPY To : aria1946 From : Jasen Betts Date : Wed Feb 27 2002 06:17 am From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: Re: XCOPY or COPY Hi aria1946. 25-Feb-02 13:27:22, aria1946 wrote to Jasen.Betts@xspamp42.f531.n640.z3.f a> >11-Feb-02 06:40:50, aria1946 wrote to All a>> Is there any particular advantage to using COPY or XCOPY? a> >it depends which has the features you want... >have you considered a> using replace? a> [564K] c:\windows >ver a> 4DOS 7.01A (Win98) DOS 7.10 a> [564K] c:\windows >replace Unknown command "replace" possibly in the "oldmsdos" section of your install disk ? a> >how do you want to deal with files that are on H but not on E ? a> I want 'em gone. I'd like to keep H: as a mirror of E:, more or a> less. that makes things more interesting.... comething like this maybe (untested) :: first delete the excess files on H cdd h:\ global ( cd e%@instr[1,,%@path[%_cwds]] for /a:-d %x in (*.*) do if not exist e:%x del /eyz h:*x) :: then copy the contents of E copy /shkr /a: E:\ H:\ you may also want options on the copy like /U to save re-copying files that haven't changed (according to the modification timestamp) -=> Bye <=- -- |Fidonet: Jasen Betts 3:640/531.42 | | 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) .