Solved

robocopy

Posted on 2012-04-02
2
1,462 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Raymond Peng 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Suggested Courses

615 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