Monday 29 September 2014

Microsoft DOS fciv command



About fciv

Short for File Checksum Integrity Verifier, FCIV is a Windows command line command that can be used to check the MD5 or SHA-1 file checksum cryptographic hash information.

Availability

The fciv.exe is an external command that is not pre-installed with any version of Windows, it must be downloaded from Microsoft.

Syntax

fciv.exe [Commands] <Options>
-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.
-md5 | -sha1 | -both Specify hashtype, default md5.
-xml db Specify database format and name.

Examples

fciv hope.txt
Running the fciv against any file (in this case hope.txt) displays the File Checksum information similar to the example below.
//
// File Checksum Integrity Verifier version 2.05.
//
30ad2c562520d88d4e030fecf2f8c642 hope.txt
fciv hope.txt -both
Running the above command will give the output for both MD5 and SHA-1.
fciv -add hope.txt -xml hope.xml
Add the MD5 information of the "hope.txt" file to the XML hope.xml file. If the file does not exist a new file will be created. Below is an example of the XML file created using this command.
<?xml version="1.0" encoding="utf-8"?>
<FCIV>
<FILE_ENTRY><name>hope.txt</name><MD5>kS7IA7LOSeSlQQaNSVq1cA==</MD5></FILE_ENTRY></FCIV>

No comments:

Post a Comment