Solved

robocopy

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

Do email signature updates give you a headache?

Are you constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
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.

920 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

17 Experts available now in Live!

Get 1:1 Help Now