Subj : Re: MS XCOPY v 4DOS internal COPY To : Outsider From : Jasen Betts Date : Sun Feb 10 2002 06:42 am From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: Re: MS XCOPY v 4DOS internal COPY Hi Outsider. 09-Feb-02 08:32:02, Outsider wrote to Jasen.Betts@xspamp42.f531.n640.z3.f O> From: Outsider O> Jasen.Betts@xspamp42.f531.n640.z3.fidonet.org wrote: O> > >> Hi Outsider. O> > >> 06-Feb-02 10:15:06, Outsider wrote to Jasen.Betts@xspamp42.f531.n640.z3.f O> ...snipped >> >> why not do that like this, it's a little faster. >> O> > >> >> command /C %temp%\test1.bat | find "\" > test1.bat O> > >> O> Ahh, but you must not allow yourself to be fooled! Because it isn't >> O> faster, it is actually slower. It just "appears" as though it >> O> _ought_ to be faster because there are fewer lines. Whatever you >> O> do, don't fall into the line counting trap >> :) I can't see why it would be slower, I guess I'll have to time it then... O> This comparison should suffice. There's certainly a difference in execution time.... it looks like pipes are much slower. strange... CHEAT! one of them does "dir C:" the other one "dir C:\" well it might have just been a typographical error :) you had me going for a while... I fixed nopipe so that it matches pipe. with 4dos the pipe verion is slightly faster, but with command it seems to slow right down when it makes pipes - weird. O> If you need a good batch timer program, see below. 4dos has one built in. >> try this: del /z /y /q /s \*.tmp >&nul O> That worked just fine. I didn't know about the "&" in front of nul. yeah, that's a 4dos thing to redirect stderr (which is most error messages) dos has 5 pre-initialised streams for each process, (useless details follow) handle name direction default device 0 stdin in con (keyboard/command-line) 1 stdout out con (screen) 2 stderr out con (screen) 3 stdprn out prn (aka lpt1) 4 stdaux both aux (aka com1) all of them which can be redirected using dos (int 21h) functions, but command.com only allows redirecting stdin and stdout. 4dos also allows redirecting stderr. Practically nothing uses stdprn, (most progs open "prn" instead) and use of stdaux is even rarer, they're only retained for CP/M compatibility AFAIK. -=> 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) .