Function reference
Calculate the checksum for a file.

FileCheckSum(filename, algorithm)

Argument Description
filename A string representing the filename
algorithm A string defining the algorithm you want to use.
Valid arguments are:
  • ‘MD5’
  • ‘SHA1’
  • ‘SHA256’
  • ‘SHA384’
  • ‘SHA512’

Data type: string
Returns the HEX representation of the checksum/hash based on the specified algorithm.

Example:

This expression returns the MD5 calculated CheckSum for the file.
FileCheckSum(‘c:\myfolder\myfile.txt’ , ‘MD5’)

Link to Wikipidia about MD5 and SHA algorithms

Last modified: 2 October 2024