Process Hacker Discussion Forum

 
Frostyayy

Text string comparisons

25 Apr 2018 02:57

Hey.

I was using process hacker to compair the strings of 2 semi-simular files so I could find out wich one had different strings.

And I was wondering, after I saved the strings of my files how could I compair them to see what strings were in one file that were not in another.
 
User avatar
dmex
Admin
Posts: 1698
Joined: 17 Jan 2011 05:43

Re: Text string comparisons

25 Apr 2018 04:01

Windows has a built-in command called FC to compare files?

1) Open command prompt.
2) Execute "FC FILE1.txt FILE2.txt"

FC supports additional parameters:
/A Displays only first and last lines for each set of differences.
/B Performs a binary comparison.
/C Disregards the case of letters.
/L Compares files as ASCII text.
/LBn Sets the maximum consecutive mismatches to the specified
number of lines.
/N Displays the line numbers on an ASCII comparison.
/OFF[LINE] Do not skip files with offline attribute set.
/T Does not expand tabs to spaces.
/U Compare files as UNICODE text files.
/W Compresses white space (tabs and spaces) for comparison.
/nnnn Specifies the number of consecutive lines that must match
after a mismatch.
[drive1:][path1]filename1
Specifies the first file or set of files to compare.
[drive2:][path2]filename2
Specifies the second file or set of files to compare.
 
User avatar
diversenok
Contributor
Posts: 49
Joined: 26 Jun 2017 17:55
OS: Windows 7 x64
Contact:

Re: Text string comparisons

25 Apr 2018 17:33

Microsoft Windows SDK also contains WinDiff comparison tool with graphical interface:
WinDiff.zip
(86.43 KiB) Downloaded 456 times
 
User avatar
viksoftru
Member
Posts: 629
Joined: 15 Aug 2011 06:01
OS: Win7 (Live! DVD), BSD

Re: Text string comparisons

25 Apr 2018 17:53

WinMerge (fork) (GPL, Open Source), KDiff3 (GPL, Open Source), and other, include commercial and Shareware GUI tools like IDM Software UltraCompare (Shareware).
 
Frostayy

Re: Text string comparisons

27 Apr 2018 04:43

All these programs keep crashing when I put my files in them.

My files with strings contain arround 6,000,000 strings and it can't handle it.

Also, I am looking for a program that shows extra strings that one has and one doesn't.
 
User avatar
viksoftru
Member
Posts: 629
Joined: 15 Aug 2011 06:01
OS: Win7 (Live! DVD), BSD

Re: Text string comparisons

27 Apr 2018 11:02

If Your fail have "6,000,000 strings" then is very large for software compare, and Your just use compare pair of SHA-256/SHA-384/SHA-512 hash sum for compare this files. For this hash function I don't know "algorithmic collision" error.
 
Noriichigo
New User
Posts: 2
Joined: 27 Jun 2018 09:16
OS: Windows 10

Re: Text string comparisons

28 Jun 2018 02:43

I see what you're trying to do here, I wanted to do something similar by comparing xxx.exe memory strings with yyy.exe memory strings, delete the duped ones and keep the ones showing extra strings the first process didn't have.