VBScript
VBScript
Example: Crypt2.CrcFile method
Demonstrates how to call the CrcFile method.Chilkat VBScript Downloads
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
set crypt = CreateObject("Chilkat.Crypt2")
filePath = "c:/temp/someFile.dat"
crc32 = crypt.CrcFile("crc-32",filePath)
outFile.WriteLine(crc32)
crc8 = crypt.CrcFile("crc8",filePath)
outFile.WriteLine(crc8)
outFile.Close