Thursday, September 26, 2013

Windows de Checksum check

デフォルトではチェックサムが確認できませんが、Microsoft謹製の fciv と言うモノを使えばできます。

ダウンロードしてデスクトップ等に展開。
パス通すのがメンドイので C:¥Windows¥System32 に置く。

cmdから

C:¥> fciv -both -add <file_name>

でOK。

Dirもリカーシヴでチェックできるようですね。
詳しくはヘルプ見て~

//
// File Checksum Integrity Verifier version 2.05.
//

Usage:  fciv.exe [Commands] <Options>

Commands: ( Default -add )

        -add    <file | dir> : Compute hash and send to output (default screen)

                dir options:
                -r       : recursive.
                -type    : ex: -type *.exe.
                -exc file: list of directories that should not be computed.
                -wp      : Without full path name. ( Default store full path)
                -bp      : specify base path to remove from full path name

        -list            : List entries in the database.
        -v               : Verify hashes.
                         : Option: -bp basepath.

        -? -h -help      : Extended Help.

Options:
        -md5 | -sha1 | -both    : Specify hashtype, default md5.
        -xml db                 : Specify database format and name.

To display the MD5 hash of a file, type fciv.exe filename

Microsoft ファイル チェックサム整合性検証ユーティリティ パッケージ