T
T
tarelka952018-09-28 00:13:02
Windows
tarelka95, 2018-09-28 00:13:02

Script (or program) to compare files in two directories?

You need to compare 2 folders with files. As a result, get information about which files are different (by md5 or any other algorithm), which files are missing, and which extra ones have been added.
The task is quite simple, and beyond compare would be solved, but there is a problem, the large size of the directory.
That is, you need a script for windows that will count 1 directory. Then, having deleted 1 directory and having received 2 directory, we count the data from the 2 directory. And we compare the results.
I found something like this under Linux:

find DIR1/* -exec md5sum {} \; > file1.lst
find DIR2/* -exec md5sum {} \; > file2.lst
diff file1.lst file2.lst

Is there something similar for windows?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2018-09-28
@dimonchik2013

total commander
or

H
Heyzi, 2018-09-28
@Heyzi

WinMerge

T
tarelka95, 2018-09-28
@tarelka95

He asked, he answered xD
This problem can be solved with the same beyond compare, simply by creating a folder image, or rather: Options->Save folder image. There is a minus of this method, the hash is only in the form of crc. But there is also a bonus in the form of storing information about the insides of archives, and not just information about archives as files.
If there is another option (script), write, it may come in handy)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question