[net.micro.pc] ms-dos assistance needed

rdgreenall@watnot.UUCP (Richard Greenall) (03/07/86)

I need some help from all the batch file experts on the network.  I
would like to make a batch file that would copy all files
from directory A to directory B.  The only thing is that I would
like the files to be copied in alphabetical order.  If you know how to
do this could you mail me the proper commands with an explanation.

Thanks for the assistance .

                        RDGREENALL@WATNOT.UUCP
                             RICHARD GREENALL
                            UNIVERSITY OF WATERLOO
                             ONTARIO, CANADA.

perkins@bnrmtv.UUCP (Henry Perkins) (03/11/86)

> would like to make a batch file that would copy all files
> from directory A to directory B.  The only thing is that I would
> like the files to be copied in alphabetical order.
> 
>                         RDGREENALL@WATNOT.UUCP
>                              RICHARD GREENALL

The easiest way to do this is to use a directory sorting utility to
make the files sorted alphabetically on the disk in the first place.
One example is DS (DiskSort) from the Norton Utilities.  Then you'd
just use:
	DS NE A:        ; Sort disk A: by Name and Extension
	COPY A:*.* B:   ; Copy the files, now in sorted order
You can get the Norton Utilities for about $50 mail order; check PC
Magazine for ads.  Other utilities, undoubtedly including some in the
public domain, would work just as well.
-- 

{hplabs,amdahl,3comvax}!bnrmtv!perkins          --Henry Perkins