Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bnrmtv.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!amdahl!bnrmtv!perkins From: perkins@bnrmtv.UUCP (Henry Perkins) Newsgroups: net.micro.pc Subject: Re: ms-dos assistance needed Message-ID: <273@bnrmtv.UUCP> Date: Mon, 10-Mar-86 17:07:35 EST Article-I.D.: bnrmtv.273 Posted: Mon Mar 10 17:07:35 1986 Date-Received: Thu, 13-Mar-86 07:54:53 EST References: <11583@watnot.UUCP> Distribution: net Organization: Bell Northern Research, Mtn. View, CA Lines: 19 > 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