comp.exe
- File Path:
C:\Windows\SysWOW64\comp.exe
- Description: File Compare Utility
Hashes
Type | Hash |
---|---|
MD5 | 712EF348F7032AA1C80D24600BA5452D |
SHA1 | CFC9150CA0300B0103DA49CE21D8DCA6DCAE13AC |
SHA256 | 758A3A677F150ECB7B123848A5F227A1B436D13B61191377E74A456535708908 |
SHA384 | AAC283AEAB4B1550A01D4D97D0D225C0B242E718E2D44F3EA291173AAFCDAD78293A4F6E7FB0318D422DB0D829364F18 |
SHA512 | 1692E8B47AD67B0326936C949D655DD86E8AB9E19950F94C165E2133586A43C399B7FAEFCF3A20503699778F232D3EBE713B4ED0D0B70624627D72936F07D9E5 |
SSDEEP | 384:DiLW3NrHPDfwgGvZYsQgKNWiHiNeZPWqZ2guEA68NDWccWFsk:DiLW3NroRQgaWiHiNYbjD8RU |
IMP | FFD97A520B1CE23CD1FC4B5F8E5BCB3C |
PESHA1 | 4B824386D98960932A72344F486AFA3E5F0AA0DE |
PE256 | 4BBFBEBEB24307829D5161B65BDDC3ACD01F0EED12E3A481BE3036426B267D57 |
Runtime Data
Usage (stdout):
Compares the contents of two files or sets of files.
COMP [data1] [data2] [/D] [/A] [/L] [/N=number] [/C] [/OFF[LINE]] [/M]
data1 Specifies location and name(s) of first file(s) to compare.
data2 Specifies location and name(s) of second files to compare.
/D Displays differences in decimal format.
/A Displays differences in ASCII characters.
/L Displays line numbers for differences.
/N=number Compares only the first specified number of lines in each file.
/C Disregards case of ASCII letters when comparing files.
/OFF[LINE] Do not skip files with offline attribute set.
/M Do not prompt for compare more files.
To compare sets of files, use wildcards in data1 and data2 parameters.
Usage (stderr):
Name of second file to compare:
Child Processes:
conhost.exe
Open Handles:
Path | Type |
---|---|
(R-D) C:\Windows\System32\en-US\ulib.dll.mui | File |
(RW-) C:\Users\user | File |
(RW-) C:\Windows | File |
\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000002.db | Section |
\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000002.db | Section |
\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*cversions.2 | Section |
\BaseNamedObjects\NLS_CodePage_1252_3_2_0_0 | Section |
\BaseNamedObjects\NLS_CodePage_437_3_2_0_0 | Section |
Loaded Modules:
Path |
---|
C:\Windows\SYSTEM32\ntdll.dll |
C:\Windows\System32\wow64.dll |
C:\Windows\System32\wow64cpu.dll |
C:\Windows\System32\wow64win.dll |
C:\Windows\SysWOW64\comp.exe |
Signature
- Status: Signature verified.
- Serial:
3300000266BD1580EFA75CD6D3000000000266
- Thumbprint:
A4341B9FD50FB9964283220A36A1EF6F6FAA7840
- Issuer: CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
- Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
File Metadata
- Original Filename: Comp.Exe
- Product Name: Microsoft Windows Operating System
- Company Name: Microsoft Corporation
- File Version: 10.0.19041.1 (WinBuild.160101.0800)
- Product Version: 10.0.19041.1
- Language: English (United States)
- Legal Copyright: Microsoft Corporation. All rights reserved.
- Machine Type: 32-bit
File Scan
- VirusTotal Detections: 0/75
- VirusTotal Link: https://www.virustotal.com/gui/file/758a3a677f150ecb7b123848a5f227a1b436d13b61191377e74a456535708908/detection
Additional Info*
*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.
comp
Compares the contents of two files or sets of files byte-by-byte. These files can be stored on the same drive or on different drives, and in the same directory or in different directories. When this command compares files, it displays their location and file names. If used without parameters, comp prompts you to enter the files to compare.
Syntax
comp [<data1>] [<data2>] [/d] [/a] [/l] [/n=<number>] [/c]
Parameters
Parameter | Description |
---|---|
<data1> |
Specifies the location and name of the first file or set of files that you want to compare. You can use wildcard characters (* and ?) to specify multiple files. |
<data2> |
Specifies the location and name of the second file or set of files that you want to compare. You can use wildcard characters (* and ?) to specify multiple files. |
/d | Displays differences in decimal format. (The default format is hexadecimal.) |
/a | Displays differences as characters. |
/l | Displays the number of the line where a difference occurs, instead of displaying the byte offset. |
/n=<number> |
Compares only the number of lines that are specified for each file, even if the files are different sizes. |
/c | Performs a comparison that is not case-sensitive. |
/off[line] | Processes files with the offline attribute set. |
/? | Displays Help at the command prompt. |
Remarks
-
During the comparison, comp displays messages that identify the locations of unequal information between the files. Each message indicates the offset memory address of the unequal bytes and the contents of the bytes (in hexadecimal notation unless the /a or /d command-line parameter is specified). Messages appear in the following format:
Compare error at OFFSET xxxxxxxx file1 = xx file2 = xx
After ten unequal comparisons, comp stops comparing the files and displays the following message:
10 Mismatches - ending compare
-
If you omit necessary components of either data1 or data2, or if you omit data2 entirely, this command prompts you for the missing information.
-
If data1 contains only a drive letter or a directory name with no file name, this command compares all of the files in the specified directory to the file specified in data1.
-
If data2 contains only a drive letter or a directory name, the default file name for data2 becomes the same name as for data1.
-
If the comp command can’t find the specified files, it will prompt you with a message about whether you want to compare additional files.
-
The files that you compare can have the same file name, provided they’re in different directories or on different drives. You can use wildcard characters (* and ?) to specify file names.
-
You must specify /n to compare files of different sizes. If the file sizes are different and /n isn’t specified, the following message is displayed:
Files are different sizes Compare more files (Y/N)?
To compare these files anyway, press N to stop the command. Then, run the comp command again, using the /n option to compare only the first portion of each file.
-
If you use wildcard characters (* and ?) to specify multiple files, comp finds the first file that matches data1 and compares it with the corresponding file in data2, if it exists. The comp command reports the results of the comparison for each file matching data1. When finished, comp displays the following message:
Compare more files (Y/N)?
To compare more files, press Y. The comp command prompts you for the locations and names of the new files. To stop the comparisons, press N. When you press Y, you’re prompted for which command-line options to use. If you don’t specify any command-line options, comp uses the ones you specified before.
Examples
To compare the contents of the directory c:\reports with the backup directory \\sales\backup\april
, type:
comp c:\reports \\sales\backup\april
To compare the first ten lines of the text files in the \invoice directory and display the result in decimal format, type:
comp \invoice\*.txt \invoice\backup\*.txt /n=10 /d
Additional References
MIT License. Copyright (c) 2020-2021 Strontic.