au3校验某个文件的crc32值 用10进制表示
如题 用au3校验某个文件的crc32值怎么用10进制表示啊 有的还有负数的那种 自己解决了#include "crc32.au3"
Global $BufferSize = 0x20000
Global $Filename = FileOpenDialog("Open file", "", "Any file (*.*)")
If $Filename = "" Then Exit
Global $Timer = TimerInit()
Global $FileHandle = FileOpen($Filename, 16)
Global $CRC32 = 0
For $i = 1 To Ceiling(FileGetSize($Filename) / $BufferSize)
$CRC32 = _CRC32(FileRead($FileHandle, $BufferSize), BitNot($CRC32))
Next
$1=StringFormat("%d", $CRC32)
MsgBox (0, "Result", $1 & " in " & Round(TimerDiff($Timer)) & " ms")
页:
[1]