LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Windows Dir info with file dates

I need to get the directory contents (file Name) and date of each file in the directory. If I ask file by file to get the date, it takes a very long time. I am checking about 28,000 files in about 4 directories.

Because the PC has so many files in each directory, accessing the file names / dates is slow. It takes about 30min. to get the information currently.

Does anyone know about a single VI that will get the dates and the names at the same time?

Thanks,
CH
0 Kudos
Message 1 of 2
(2,379 Views)
I had this vi laying around (LabVIEW 6.02) for a project that never went anywhere. It's a simple search for file name and last modified time.

Warning: This is to give you an idea of how to solve the problem. It is not tested! It returns time values in LV seconds (since 1905, easy to convert). It has any number of warts (memory usage, listing llb contents, etc), but might be a start for you.

Good luck.
0 Kudos
Message 2 of 2
(2,379 Views)