comp.exe

  • File Path: C:\windows\SysWOW64\comp.exe
  • Description: File Compare Utility

Hashes

Type Hash
MD5 EE6C60CDA116F680F04A62794F59495E
SHA1 0738B72AAC54E1D539DF72C03A439A685301EF56
SHA256 358EE9D6C7F8AB2479B13EC9BFC546EF7ECD9E2161C6A5D5ED97976C4365F301
SHA384 81EBAFB05AF498FD2CE96A062C9582E0DA3535D4325274E198B2D5EAB99E695601B4243BEBA3C377DF804A1CA46DA00C
SHA512 764FAD0BA4C2559BF092FA07D81CB24AB7A63BFE70B1BE3E3D3503C92CC94BAD9D687A6BF0E40FD574A4778AB0785CC2644371FAEEFBC55B8843D2A1E1C3FFD7
SSDEEP 384:CfErsTLVG/vD1DutspT0noc2Xq9qkBkC4YL+NTWKcW:CsrsTAzNEO0nndAkeH8+j

Signature

  • Status: The file C:\windows\SysWOW64\comp.exe is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170
  • Serial: ``
  • Thumbprint: ``
  • Issuer:
  • Subject:

File Metadata

  • Original Filename: Comp.Exe.MUI
  • Product Name: Microsoft Windows Operating System
  • Company Name: Microsoft Corporation
  • File Version: 6.3.9600.16384 (winblue_rtm.130821-1623)
  • Product Version: 6.3.9600.16384
  • Language: English (United States)
  • Legal Copyright: Microsoft Corporation. All rights reserved.

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.