Trouble with ROBOCOPY - copy files to destination that don't already exist
Posted: 10 Aug 2023 09:14
HI All -
I have a few folders & contents (including subdirecotries) I need to copy from source to target. I need to do this frequently but what's happening is that it's copying everything each time I run the ROBOCOPY. I've tried to modiy it but having no luck.
Here's what I have:
I also read ROBOCOPY will ignore any files in destination that already exists that match identically and I do have that, but still copies those.
I need to copy files that exist in the SOURCE but not int he destination. And only IF the source file is newer than the destination, then copy.
Any help is greatly appreciated. Thank you!
I have a few folders & contents (including subdirecotries) I need to copy from source to target. I need to do this frequently but what's happening is that it's copying everything each time I run the ROBOCOPY. I've tried to modiy it but having no luck.
Here's what I have:
Code: Select all
ROBOCOPY "source" "dest" /s /e /xo /log+:"output.txt"
I need to copy files that exist in the SOURCE but not int he destination. And only IF the source file is newer than the destination, then copy.
Any help is greatly appreciated. Thank you!