String mode:@CRC32[s,string]
File mode:@CRC32[[d,][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.


If the first argument for file mode is a d, @CRC32 will return the result in decimal (base 10) format. (This is the same format as POSIX 1003.2.) Otherwise, the result is returned in hexadecimal format.


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..




echo %@crc32["C:\windows\explorer.exe"]



echo %@crc32["%comspec"]



echo %@crc32[d,"%comspec"]