Solved

robocopy

Posted on 2012-04-02
2
1,410 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
Comment Utility
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
Comment Utility
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now