Yzöwl Posted November 15, 2009 Posted November 15, 2009 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 /XOObviously you'd need to define both %SOURCE%, (currently B), and %DESTINATION%, (currently A).
jaclaz Posted November 16, 2009 Posted November 16, 2009 - 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. Well, there is googling and googling :http://www.robvanderwoude.com/http://www.robvanderwoude.com/ntfor.phpjaclaz
CharlotteTheHarlot Posted November 16, 2009 Posted November 16, 2009 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. 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!
horus Posted November 21, 2009 Author Posted November 21, 2009 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: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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now