Example Code

Hide File orFolder Programmatically

Code and Documents

Attachment

Overview

Demonstrate the use of Call Library Function Node to hide a file or folder.

 

 

Description

This VI makes DLL call to change the status of a file or folder to be hidden. It passes the directory information to Call Function Library node that has been set up in windows. You can use this VI to convert a file or a folder’s visibility by simply put a path.

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI " Hide File Programatically 2012 NIVerified.vi”
  2. 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.**

Matt Surridge

National Instruments

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