Example Code

Count VI Files in a Directory and Sub-Directory Recursively

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

 

Overview

Coding that exemplifies how to count VI files in a directory recursively.

 

Description

This VI will count all VI files in a specified folder and all sub-folders recursively. In addition, this will expand any llb files to count the number of VI's in this llb as well. Take a look at the code for an example of writing recursive LabVIEW functions

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Select the folder that contains VI files
2. Run the VI

 

Additional Information or References

Capture.PNG

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

Comments
Todd S.
NI Employee (retired)
on

Boom goes the dynamite!  Thanks for posting!

Todd S.
LabVIEW Community Manager
National Instruments