LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

search file

Hi all :
 
i want to bulid application that search file in my computer , can i do this in labview
 
thanks
 
 
0 Kudos
Message 1 of 5
(2,696 Views)
Hi elyan,

yes. Smiley Very Happy

How to do?

In the file palette (LV8+) you find a function to list directory's contents, sorted by files and sub-folders. Compare the resulting "files"-array with your filename (case-insensitive...) to look for your file... Use the "sub-folders" output to enable recursive search. Or use the built-in recursive search feature...

Or wait for ~1 hour, than I can attach an example Smiley Wink


Message Edited by GerdW on 03-19-2008 04:33 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,692 Views)
Hi :
 
I will wait !!! 🙂
 
thank you very much
 
0 Kudos
Message 3 of 5
(2,689 Views)
Hi :
 
this file exsist some where in my computer , i want onlyt to type the file name .. then the application tell me where is it found , and if it found or not
 
 
thanks
 
0 Kudos
Message 4 of 5
(2,687 Views)
Open the VI "Recursive File List" that's part of the Librarian Manager. The default location for this is "C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Utility\libraryn.llb". This will recursively list all files from a starting location. Then, just search the All Files in Dir output array for your file. You will need to strip the path for each array element, but that's trivial.

Note: The recursive file listing will be slow if you tell it to search your entire hard disk.
0 Kudos
Message 5 of 5
(2,669 Views)