Example Code

Programmatically Confirm MD5 Checksum and Extract ZIP Archive Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

Overview

This VI confirms that the MD5 checksums of the files are the same and then extract the files to the specified directory

 

Description

This example program is designed to be used in conjunction with this LabVIEW example. It assumes that there is a ZIP file as well as an MD5 checksum stored in a text file titled <ZIP File name>_MD5.txt. If both these files are present, this code will confirm that the MD5 checksums of the files are the same and then extract the files to the specified directory

 

Requirements

LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code

 

  1. Provide the Zip File Path
  2. Provide the Target Unzip Directory File Path
  3. Make sure that MD5 checksum file is stored in a text file titled <ZIP File name>_MD5.txt
  4. Check MD5 Check Button
  5. Run the VI

Additional Information or References

VI Block Diagram

md5.png

 

For more information on the MD5 algorithm, please see this Wikipedia article.

**This document has been updated to meet the current required format for the NI Code Exchange. **

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.