Compare Directories

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  User Guide and Reference > Menu Commands > Tools Menu > Comparisons >

Compare Directories

The Compare Directories command allows you to compare two directories, with or without their sub-directories. Directories are compared to indicate missing files, and whether files of the same name are different or not.

 

To compare two directories:

 

1.Click Tools | Compare directories. The following dialog appears.

diff_choose_dirs

2.Browse for the directories to compare, and check the Include subdirectories check box if you wish to include subdirectories in the Compare.
3.Select the file types you want to compare in the Files of type field. There are three options in the dropdown menu: (i) XML filetypes; (ii) Filetypes defined in XMLSpy; and (iii) all filetypes.
4.Click OK. The Settings dialog (described in Compare Options) appears.
5.Select the required settings for comparing files.
6.Click OK. A dialog will appear indicating the progress of the Compare.

 

 

The result will appear in a window, and will look like this:

Click to expand/collapse

 

Directory symbols

All directory names are given in black.

diff_dir_collapsed        Directory is collapsed and its contents are not displayed.

diff_dir_expanded        Directory is expanded, indicated by the turned down corner. The contents are displayed.

diff_dir_no_diff        Directory contains files, all of which either cannot be compared or are not different from the corresponding file in the compared directory.

diff_dir_not_exist        Directory contains one or more files that do not exist in the compared directory.

diff_dir_not_equal        Directory contains one or more files that are different from the corresponding file in the compared directory.

diff_dir_notexist_notequal        Directory contains one or more files that do not exist in the compared directory and one or more files that are different from the corresponding file in the compared directory.

 

File symbols

The colors in which file names appear depend on their compare status. These colors are noted below.

 

diff_file_not_compareThis file cannot be compared (with the corresponding file in the compared directory). A question mark appears in the middle column. The file name appears in black.
diff_file_equalThis file is not different from the corresponding file in the compared directory. An equals-to sign appears in the middle column. The file name appears in black.
diff_file_not_existThis file does not exist in the compared directory. The middle column is empty. The file name appears in blue.
diff_file_notequal_newThis file is different from the corresponding file in the compared directory, and the last modification to this file is more recent than the last modification to the corresponding file. The newer file appears in a brighter red, and the icon shows the brighter red file symbol on the side having the newer file.

 

Viewing options

 

Select what files to show by checking or unchecking the options in the Show pane at the bottom of the Result window.
Open or close all subdirectories by clicking the appropriate button in the Directories pane.
Expand or collapse subdirectories by double-clicking the folder icon.
The Size and Last Modified can be toggled on and off by right-clicking on either file titlebar and clicking Size and Last Modified.

diff_column_options

Change column widths by dragging columns.
The Result window can be maximized, minimized, and resized.

 

Comparing and merging files

Double-clicking on a line opens both files on that line in the Main Window, and directly starts a File Compare for the two files. You can then continue as in a regular Compare session (see Compare open file with...).

 


© 2019 Altova GmbH