Message-Id: <199704221755.TAA01628@magigimmix.xs4all.nl> From: "yeep" To: Subject: Re: surprising xcopy behavior Date: Tue, 22 Apr 1997 19:50:48 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Precedence: bulk > I was interested in having opendos do an xcopy from > a floppy to a hard drive and have opendos recreate a > directory structure on the hard drive which already > exists on the floppy. > I tried: > xcopy /d /s a:\dirname\*.* c: > and what happened was opendos started dumping files from under > dirname on a: into the root directory on c:. Fortunately nothing irrepairable for > myself but this would be a nasty surprise for a new > computer user if what I typed was correct for that purpose. > The xcopy documentation in xcopy help documentation doesn't make much more clear > than that. > What should have happened at first was c:\dirname should have been created and > then the files in that file tree should have copied over. You put "C:" in the command line, so XCOPY uses the CWD from harddisk C, which at the time would be the root dir. Then he copied the files from "dirname" to the CWD in C (again the root dir) and then copy the dir structure from "dirname". Meaning only sub-dirs in "dirname". This seems like normal behaviour to me. Yeep