![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 5278 Date : 2003-08-11 Author : Garry Deane Subject : Re: Delete duplicates Size(KB) : 0
--- In xxcopy@yahoogroups.com, "Morten Lunde" wrote: > I have a tree like this: > > > > |- > | |-- > |- > | |-- > |- > | |-- > etc. > > Can XXCopy be used to delete all files from dir1, dir2, dir3 > etc. that exists in their DirArchive directory? (All SubDirs > for dir1, dir2, has the same name. Yes I think you could devise a scheme to do this although I can't quite think how you would do it with just xxcopy commands. Because it's simpler, what I would do is use a FOR/F loop to step through each parent directory then use /RSY/BS to remove files in the parent which have an identical counterpart in the child dir. for /f "tokens=*" %%a in ('dir /b/ad d:\') do ( xxcopy "d:\%%a\" "d:\%%a\dirarchive\" /rsy/bs/ed/pd0) Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.