I'm using VISTA. Can someone please remind me of the correct format of a DOS command to copy all folders and files from one place to another?
The command I am trying is something like
COPY C:\DIR1\*.* C:\DIR2\VERSION1
[where DIR1 is the source folder and VERSION1 is the destination folder] but it either fails or only copies the files from DIR1 but not the folders and their contents. I tried putting the option
/S
at the end but that didn't work either. I came across something called ROBOCOPY but that is overwhelming when it tells you what it can do, but I still can't do what I want. I have to use DOS because I'm calling the process from inside another program.
Re: DOS COPY « Reply #2 on: Monday 05 May 08 18:01 BST (UK) »
Quote
but it either fails or only copies the files from DIR1 but not the folders and their contents. I tried putting the option
Copy only ever copied the files which were not contained in other directories or folders and I would agree that Xcopy is the tool you want to use as its functions copies not only the files but the directory structure as well.