LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I count files in a directory

I wish to count files in a directory to give me a total sum,so I can sort data from them.
0 Kudos
Message 1 of 2
(2,459 Views)
The function File/Directory Info if passed a directory as it's path input, returns the total number of objects in the directory. This is files plus any sub-directories. The function List Directory returns an array of file names and an array of directory names. To get the number of files, just use the Array Size function. Look at the File I/O>Advanced File Functions palette to find File/Directory Info and List Directory functions.
0 Kudos
Message 2 of 2
(2,459 Views)