Link to home
Start Free TrialLog in
Avatar of coreybryant
coreybryantFlag for United States of America

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\Documents

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
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There is  a freeware software. you can specify what you want to do
search for allwaysync in Google
Avatar of coreybryant

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
Avatar of oBdA
oBdA

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.
Ok, sorry, I was reading too fast
Thanks again!
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