|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Compare Two Folders
Compare allows you to see the differences between two server folders, two local folders, or a server folder and a local folder. You can also use Compare to compare two files. For more information, see How to: Compare Two Files.
To perform these procedures, you must have the Read permission set to Allow. For more information, see Team Foundation Server Permissions.
To compare two local folders, you do not need Team Foundation Server permissions.
To compare folders using Folder Difference
On the View menu, click Other Windows, and then click Source Control Explorer.
In Source Control Explorer, go to the source folder you want to compare, right-click, and select Compare.
The Compare dialog box appears and the version control path to the folder you selected is in the Source Path box.
Under Source Version, select the Type you want to use for comparison: Changeset, Date, Label, Latest Version, or Workspace Version.
Enter the Target Path or click Browse and go to the target folder.
Under Filter, add or remove file and folder filters.
For more information, see Folder Comparison Filters.
Check the Filter local paths only box if you want to apply the filter only to local paths.
Under View Options, select which items you want shown in the comparison results. You can choose a combination of view options by checking or clearing the following boxes:
Show items that exist only in source path
Show items that exist only in target path
Show items that are different
Show items that are the same
A Folder Difference window displays a list of items compared in the source and target folders. Should differences arise between a server folder and your local folder, you can resolve them from the Folder Difference window. For more information, see How to: Reconcile Differences Between Two Folders.