LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search for a specific file, most recently modified

Solved!
Go to solution

I have a folder with many subfolders, and within each subfolder there is a file called myFile.txt:

C:\myFolder\Folder_1\myFile.txt

C:\myFolder\Folder_2\myFile.txt

C:\myFolder\Folder_3\myFile.txt

 

I would like to search all subfolders under C:\myFolder\, and look for the myfile.txt which was most recently modified.

Can anybody help?

0 Kudos
Message 1 of 3
(2,107 Views)
Solution
Accepted by splee

Hope this helps:

File Search.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 3
(2,102 Views)

Use List Folder to get an array of filemnames in myFolder and then File/Directory Info to get the Last Modified timestamps.  Both of these functions are in the Advanced subpalette of the File palette.

 

Lynn

Message 3 of 3
(2,100 Views)