Batched file creation

I would like to have a simple batch file that would allow me to copy the entire contents from the system drive (C:) to a signal directory on another drive, In others words I want copy of the entire directory tree including all file but stored in one directory. I assume it can be done with xcopy. I use to right this type file all the time but the year have taken that ability from me. Thank for any help you can give me.

13 answers
sort by: active | newest | oldest
Oct 6, 2012. 10:45 PMiceng says:
You need a serial cable and a text command to move the appropriate files.

A
Dec 15, 2012. 5:40 PMProf. Pickle says:
I don't know, because I've never needed to do this. Although I'm not that well acquainted with the COPY command, this should work:

copy C:\ /y

Have fun!
Dec 15, 2012. 11:38 PMiceng says:
xcopy C:\Files E:\Files /i

In the above example, the files contained in the source directory of C:\Files are copied to destination, a new directory [/i] on the E drive called Files.

No subdirectories, nor any files contained within them, will be copied because I did not use the /s option.

Dec 15, 2012. 11:44 PMProf. Pickle says:
Sorry, I didn't realize that I forgot the directory where files were being copied.

Thanks.
Oct 7, 2012. 5:41 AMBillieBobbel says:
Doesn't seems very complicated: http://www.computerhope.com/issues/ch000766.htm forget Xcopy (never heard of that before) and go with regular copy :)
Oct 7, 2012. 5:42 AMBillieBobbel says:
My bad, xcopy is a batch command and should work just fine.
But try it with regular copy anyways
Oct 11, 2012. 8:54 AMthegeeke says:
I think that copy will just tell you it can no longer copy entire drives. Not sure about xcopy, but I could be wrong about copy. I just seem to remember an error the last time I tried to do it from command prompt. :(
Oct 7, 2012. 12:47 AMrickharris says:
Drag and drop the files on the new drive works

You can do this with folders as well

Oct 7, 2012. 1:46 AMrickharris says:
I gather you want to clone your HD - There are a number of pay for and free apps to do this.

http://downloadsquad.switched.com/2008/09/05/5-free-apps-to-clone-your-hard-drive/
Oct 7, 2012. 12:38 PMJayefuu says:
I've used partition magic before. It was excellent.

Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!