PDA

View Full Version : How might I copy on only diffs between two folders into a third?


Dave_Novak
03-15-2007, 08:22 AM
Here's the scenario --

* I have Folder A (which contains a copy of my latest source code)
* I have Folder B (which contains a copy of the base version of this same source code)
* Now I wish to create Folder C with just the differences between these two folders. Folder C is to contain only those files that have been updated or added.

Does that make sense? Any suggestions?

kevina
03-15-2007, 09:12 AM
There are no built in actions in Visual Build Professional to do folder comparisons.

There are numerous third party programs created specifically for comparing files & folders, such as Beyond Compare (http://www.scootersoftware.com/) (not free but one that we use) or you could create a Run Script step in Visual Build which uses the vbld_FSO object to iterate over the folder contents and do the comparison you need.

Dave_Novak
03-15-2007, 06:22 PM
That's good advice -- Beyond Compare is a great tool (used it for years). I was just hoping I could do it all from VBP. You guys should work out a deal with them and offer Compare/Diff/Merge/Sync actions in VBP using BC2 engine. Just a thought.