|
Answer» Hi all,
I am aware that there is no switch to do this so i was thinking of another way of doing it.
i was thinking of creating a text file with a list of files in the directory in source and destination, then comparing the two, finding any DIFFERENCE then copy the files singley.
so far i have
echo off
DIR /S /b c:\a\* >> a.TXT DIR /S /b c:\b\* >> b.txt
this creates files a.txt and b.txt with a list of file NAMES files in each folder. i would then need to compare the two, CREATE a 3rd .txt file which contains the path of everything that is in dir a and not in b, then copy from dir a everything in the 3rd .txt file to dir b...
hope this makes sense. im sort of disappointed that microsoft would not include a switch for this, there are many USES for it.
Any help would be great.
Thank you. normally, you would go for xcopy. type xcopy /? and see how its used.xcopy has more functions within but none to say no to all
|