Solved

robocopy

Posted on 2012-04-02
2
1,434 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:
l33tf0b earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

825 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