Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using XCOPY

Status
Not open for further replies.

OnAFan

Technical User
Mar 13, 2002
120
US
Hello everyone, I have never used xcopy before, but I think this is what I need to use. I need to move half of the contents of a folder to a new folder (everything in the folder begining with the letters L-Z)- about 200GB. I assume I will need to use the wildcard? Does anyone have an example of actual syntax for this? Any tips? Thank you in advance.
 
I would recommend robocopy over xcopy. Robocopy is more robust and much faster. Robocopy will also allow you to put multiple copies of the switch that specifices what file names to run.

You can download it from
The switches you will want to look at are:
Code:
robocopy d:\path_to_source e:\path_to_destination *.* /XF A*.* B*.* c*.* d*.* e*.* ...

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
 
Thanks a lot! I will look into going this route - faster is better, especially on a Friday.
Terry
 
not a problem.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
 
I would be curious to see what kind of speed across the wire that prog can get. robocopy will basically max out the nic (assuming that your drives are fast enough). What method does it use to copy the files? I would assume that it's using the vb copyfile function (or something like copyfile) which uses the windows api which is just about as slow as copying the files from within the windows gui.

Do you have any stats on how long it takes for it to copy say 100 Gig of data from one server to another? Or even from 1 drive to another?

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top