xcopy \\cpe-dc1\Public2\ d:\cpe\public2 /f /j /s /w /z
xcopy C:\Videos "\\SERVER\Media Backup" /f /j /s /w /z
Here, the xcopy command is used to copy all the files, subfolders, and files contained in the subfolders [/s] from source of C:\Videos to the destination folder Media Backup located on a computer on the network by the name of SERVER. I'm copying some really large video files so I want to disable buffering to improve the copy process [/j] and since I'm copying over the network, I want to be able to resume copying if I lose my network connection [/z]. Being paranoid, I want to be prompted to start the xcopy process before it actually does anything [/w] and I also want to see every detail about what files are being copied as they're being copied [/f].
Credit to: http://pcsupport.about.com/od/commandlinereference/p/xcopy-command.htm