Example Code

Programmatic VI Password Application to an Entire Directory Tree

Code and Documents

Attachment

Overview
This VI will allow you to apply a single password to an entire directory tree of VIs from the top level down.

 


Description
This VI will allow you to apply a single password to an entire directory tree of VIs from the top level down. The VI also added the function to remove the password protection from all the VIs as well. It could be a useful tool when it is not desirable to create a source distribution and there are far too many VIs to go through them all setting the password manually.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "Password Protect Batch 2012 NIVerified.vi"
  3. Choose the top level direction location and input the password
  4. Run the program

 

Additional Information or References
VI Snippet

 Block Diagram.PNG

 

 **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.