xcopy /s c:\source d:\target
You'd probably want to tweak a few things; some of the options we also add include these:
/s/e - recursive copy, including copying empty directories.
/v - add this to verify the copy against the original. slower, but for the paranoid.
/h - copy system and hidden files.
/k - copy read-only attributes along with files. otherwise, all files become read-write.
/x - if you care about permissions, you might want /o or /x.
/y - don't prompt before overwriting existing files.
/z - if you think the copy might fail and you want to restart it, use this. It places a marker on each file as it copies, so you can rerun the xcopy command to pick up from where it left off.
If you think the xcopy might fail partway through (like when you are copying over a flaky network connection), or that you have to stop it and want to continue it later, you can use xcopy /s/z c:\source d:\target.
***********************************************************************************************************
ROBOCOPY "C:\folder" "C:\folder" /mir
**************************************************
Example
@ECHO
:begin
SET PATH1=S:\FinAdj\TOOLS
SET PATH2=C:\Users\%username%\Documents
echo %username%, %date%, %time%, Start Upload to C: from to S: >> %PATH1%\log.txt
DEL /q/f/s %PATH2%\Attachmate\Reflection
DEL /q/f/s %PATH2%\AHK
DEL /q/f/s %PATH2%\MyPictures
rmdir /s/q "%PATH2%\Attachmate\Reflection"
rmdir /s/q "%PATH2%\AHK"
rmdir /s/q "%PATH2%\MyPictures"
:top
cls
timeout /T 2
mkdir "%PATH2%\Attachmate\Reflection"
mkdir "%PATH2%\AHK"
mkdir "%PATH2%\MyPictures"
:top2
cls
timeout /T 2
xcopy /s/z "%PATH1%\Reflection\*" "%PATH2%\Attachmate\Reflection"
xcopy /s/z "%PATH1%\AHK\*" "%PATH2%\AHK"
xcopy /s/z "%PATH1%\MyPictures\*" "%PATH2%\MyPictures"
echo %username%, %date%, %time%, End Upload to C: from to S: >> %PATH1%\log.txt
:end