|
|
||
String mode: @CRC32[s,string]
File mode: @CRC32[[f,]filename]
Returns the CRC32 value (using the same algorithm as PKZIP or WINZIP) of the character in string or of the contents of the file filename. The first parameter must be s for a string, and any leading or trailing whitespace characters in string are included.
Filename may be specified with or without an optional f. @CRC32 returns -1 if the file does not exist, or it cannot be read.
Since Take Command handles all internal strings as Unicode, @CRC32 will return different results for a string and the identical string in an ASCII file.
See also: @SHA256, @SHA384, @SHA512, and @MD5..
Examples:
echo %@crc32["C:\My Files\Myprog.exe"]
echo %@crc32["%comspec"]