Classic ASP
Classic ASP
Compute CRC32 of a File
Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set zipCrc = Server.CreateObject("Chilkat.ZipCrc")
' Use a relative for absolute path to the file..
crc = zipCrc.FileCrc("qa_data/hamlet.xml")
hexStr = zipCrc.ToHex(crc)
Response.Write "<pre>" & Server.HTMLEncode( hexStr) & "</pre>"
%>
</body>
</html>