Jump to content

Paste over, a structure of folders without overwriting files?


Recommended Posts

Posted

Using Robocopy, (as already suggested by jaclaz), you could try the following to see how close to what you're after you get!

ROBOCOPY %SOURCE% %DESTINATION% /E /COPYALL /MOVE /XC /XN /XO

Obviously you'd need to define both %SOURCE%, (currently B), and %DESTINATION%, (currently A).


Posted
- writing something that looks prehistoric to Jaclaz. In fact this is the first time I ever write something with the FOR command and I just googled for its use, wrote a few lines batch and tested it. And Charlotte described it as excellent, but I'm not ruling out sarcasm here. :D

Well, there is googling and googling ;):

http://www.robvanderwoude.com/

http://www.robvanderwoude.com/ntfor.php

jaclaz

Posted
there is nothing even in further posts, that suggests a "more up to date file" in B is OK to overwrite older file in A.

You're right about that. I was just playing it safe is all (expect the worst hope for the best, etc). My first commandment is to protect the data.

... And Charlotte described it as excellent, but I'm not ruling out sarcasm here. :D

LOL ... no sarcasm really! I love FOR loops especially nested ones and that one looks to me like it will work. I just wanted to avoid the multiple dialogs about overwrite.

Looking at it again I see it can be done this way as well ...
This time it's me that can't see the difference, except of course folder C doesn't exist at first and is new. But lets consider my remark as pedantic.

In that second example I just knocked off one copy operation.

There was definitely nothing elegant or efficient about what I posted, it was merely functional and lossless. When I have a backup present (and I always do myself, but clients never seem to) then I go for beauty and elegance!

@horus, haven't used RichCopy but from that page you posted it sure looks like all the options you will need are in place. If I were you I might just back up that whole folder structure into a ZIP and then experiment away!

Posted

Ok, seems that TeraCopy doesn't move the rest of the files, if an overwriting has been skipped.

I've tried RichCopy again, and it seems to work with these settings:

clipboard1t.th.jpg

It seems to work(I've tested it on a small number of files), except that it doesn't move files with "~" in their name.

Can someone confirm that it does what I want, before I destroy 20k files?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...