LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file search using * (global)

I am trying to search files using the DOS global search (*) in labview, could some body show me how to do that
0 Kudos
Message 1 of 2
(2,737 Views)
Hi dweldai,

In your block diagram, go to the Functions Palette and select File I/O, and Advanced File Functions.

Select the List Directory vi.

Us the "pattern" to filter your search. The pattern matching in this function is similar to the matching used in matching wildcards in Windows and UNIX filenames and is not like the regular expression matching performed by the Match Pattern function. If you specify characters other than the question mark character (?) or the asterisk character (*), the function displays only files or directories that contain those characters. You can use the question mark character (?) to match any single character. You can use the asterisk character (*) to match any sequence of one or more characters.

If pattern is an empty
string, the VI returns all files and directories.

-JLV-
Message 2 of 2
(2,737 Views)