Instructables

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.

iceng2 years ago
You need a serial cable and a text command to move the appropriate files.

A
ka3ebe (author)  iceng2 years ago
I don't want to moving files from one computer to another just from 1 drive to a file on another drive within the same computer. All I ask for is help with the a batch file or utility to copy the complete drive to a signal file
ka3ebe (author)  iceng2 years ago
I don't want to moving files from one computer to another just from 1 drive to a file on another drive within the same computer. All I ask for is help with the a batch file or utility to copy the complete drive to a signal file
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!
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.

Sorry, I didn't realize that I forgot the directory where files were being copied.

Thanks.
Doesn't seems very complicated: http://www.computerhope.com/issues/ch000766.htm forget Xcopy (never heard of that before) and go with regular copy :)
My bad, xcopy is a batch command and should work just fine.
But try it with regular copy anyways
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. :(
rickharris2 years ago
Drag and drop the files on the new drive works

You can do this with folders as well

ka3ebe (author)  rickharris2 years ago
Yes that would be nice but some system files don't seem to like being drag and drop as soon as it comes to one that is in use the copy stops beside I am working with two 1 trigabit drives wich is a lot to drang and drop, The problem is they boyh have files on them from a daul boot system and I don't want to lose any of the data. I just want to get it all to one disk.
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/
I've used partition magic before. It was excellent.