xcopy and compare two directories

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?
 
P

Pegasus

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.
 
M

Michael Bednarek

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>
).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top