xcopy and compare two directories

  • Thread starter Thread starter nevje
  • Start date Start date
N

nevje

im using xcopy to copy 1 directory and all subfolders and files to
another drive, however the number of files in the destination is
different to the source.

source 1191 files, 86 folders
destination 1190 files, 86 folders

i could do with a way of comparing the two directories to see what is
missing in the destination directory, any pointers?
 
nevje said:
im using xcopy to copy 1 directory and all subfolders and files to
another drive, however the number of files in the destination is
different to the source.

source 1191 files, 86 folders
destination 1190 files, 86 folders

i could do with a way of comparing the two directories to see what is
missing in the destination directory, any pointers?

Do this:
- Start a Command Prompt
- Navigate to the source directory
- Type this command:
for %a in (*.*) do if not exist "c:\Destination Folder\%a" pause

Substitute the correct path for "c:\Destination Folder" and
make sure to surround the whole thing with double quotes.
The command will stop when it finds the missing file. It's
probably a 0-byte file.
 
im using xcopy to copy 1 directory and all subfolders and files to
another drive, however the number of files in the destination is
different to the source.

source 1191 files, 86 folders
destination 1190 files, 86 folders

i could do with a way of comparing the two directories to see what is
missing in the destination directory, any pointers?

WINDIFF (Support Tools, on CD), and ROBOCOPY (Resource Kit
<http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en>
).
 
Back
Top