FileContentsAreEqual |
Top Previous Next |
The FileContentsAreEqual condition checks returns true if the contents of both files are identical.
Command Syntax
The Command syntax is the command name, followed by a colon, then the fully qualified path and file name to check:
FileContentsAreEqual:[FileToCompare],[FileToCompareWith]
Parameters:
FileToCompare: The fully qualified path and file name from which to obtain the timestamp to check FileToCompareWith: The fully qualified path and file name to check
Both parameters are compulsory and must be surrounded by quotation marks if one or more spaces are included in the path and file name. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts. If the parameter is missing an error will be thrown. IMPORTANT: Because of the need to to go through each file at the base level to accurately detect whether there are any differences between the file contents, with excessively large files this command can be slow and/or use a lot of memory. Example:
If:FileContentsAreEqual:"c:\Test Text.txt","c:\Temp\Test Text.txt",Remark:"Yes",Remark:"No"
See Also: FileIsNewer FileIsOlder FileExists DirectoryExists NotDirectoryExists |