Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

robocopy

Posted on 2012-04-02
2
Medium Priority
?
1,479 Views
Last Modified: 2012-04-02
I wanted to know how would I use the robocopy command if I want to copy files from one folder to another without overwritting any files already in the destination folder?


I'm currently using this synatx for moving everything from one folder to another, but I just need to be able to copy what's in one folder to another, without overwriting any data in the destination folder.

robocopy  \\server\userdocs\usertest E:\userdocs\usertest /E /MIR /COPYALL /MT /V /LOG:E:\logs\usertest.txt /R:0 /W:0 /TEE /ETA /DCOPY:T /FP /ZB
0
Comment
Question by:afacts
2 Comments
 
LVL 16

Accepted Solution

by:
Raymond Peng earned 2000 total points
ID: 37798617
you might want to take a look at richcopy (robocopy's replacement)

http://www.softpedia.com/get/System/File-Management/Microsoft-RichCopy.shtml

but here's robocopy switches:

robocopy c:\Sourcepath c:\Destpath /E /XC /XN /XO

/E makes Robocopy recursively copy subdirectories, including empty ones.
/XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those.
/XN excludes files existing files newer than the copy in the source directory. Robocopy normally overwrites those.
/XO excludes files existing files older than the copy in the source directory. Robocopy normally overwrites those.

http://stackoverflow.com/questions/4228807/copy-files-w-o-overwrite
0
 

Author Closing Comment

by:afacts
ID: 37798702
Thanks, I tried richcopy, but it didn't work that good, I forgot what the problem was, but I didn't like something with it.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question