Syntax
CompareFiles <file1> <file2>Description
Returns True if two files are identical in content.Parameters
<file1>
- One of the files to compare.
<file2>
- The file to compare with file1.
Remarks
The file contents are read and compared. This is most useful to confirm that a copy operation has been successful.Example
If CompareFiles "c:\autoexec.bat" "c:\autoexec.sav" Then
MessageBox Title="Compare" Text="The files are identical."
Else
MessageBox Title="Compare" Text="The files are different."
EndIf