coreybryant
asked on
DOS Command to Move All Folders
I was running out of room and moved some files over to an external HD. I found out where all my large files were so I robocopied them over.
Now the other files on J:\Users\coreybryant\My Documents\ can be moved back to C:\Users\coreybryant\Docum ents
Now, just in case there is a copy of the folder (it shouldn't be), robocopy what should I put in there to make sure it will only be overwritten if new?
I know I need to put /E to copy empty folders.
Thank you!
Now the other files on J:\Users\coreybryant\My Documents\ can be moved back to C:\Users\coreybryant\Docum
Now, just in case there is a copy of the folder (it shouldn't be), robocopy what should I put in there to make sure it will only be overwritten if new?
I know I need to put /E to copy empty folders.
Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will only need to do this really once.
I actually want to overwrite if new. The folders / files shouldn't be there, but just in case
I actually want to overwrite if new. The folders / files shouldn't be there, but just in case
Yes, that's what /XO is for. As I said, by default robocopy will overwrite a target file with the same name if there is any difference (which means that an older source file will overwrite a newer target file); /XO will make sure that a target file will only be overwritten if the source file is newer.
ASKER
Ok, sorry, I was reading too fast
ASKER
Thanks again!
ASKER
Just in case, I also found RichCopy. Since RoboCopy did not work on the old XP machine without downloading the Windows Server 2003 Resource Kit Tools which adds all the "extra" DOS commands as well on the Windows XP box.
Hopefully though I won't have to use any of these again
Hopefully though I won't have to use any of these again
search for allwaysync in Google