Skip to content

dos_filecrc

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Calculates the Cyclic Redundancy Check, or CRC, of a file. A file CRC can be useful in detecting whether or not a file has changed.

Syntax

(dos_filecrc filename [T])

Parameters

filename

The source filename.

T

If specified, a 64-bit CRC is returned. Otherwise, a 32-bit CRC is returned.

Returns

A 32- bit or 64-bit CRC, represented as a string, if successful.

nil if filename does not exist, or on error.

Example

Command: (dos_filecrc "C:\\Users\\Dale\\Desktop\\Drawing1.dwg")
"664C1CC4"

Command: (dos_filecrc "C:\\Users\\Dale\\Desktop\\Drawing1.dwg" T)
"9EDBD808460C988F"

Clone this wiki locally