ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast file find

Is there a fast way of finding files in directories & subdirectories? I need a faster VI than the List Directory.
0 Kudos
Message 1 of 2
(2,869 Views)
Hi,

If you use ms windows (NT, 2K, 98, 95), you can use "SearchTreeForFile" from
imagehlp.dll. I've a vi for it, send me a mail, and I'll mail it to you.

Or make a api call yourself :

DWORD SearchTreeForFile(
LPCTSTR lpszPath, // address of search path
LPCTSTR lpszFile, // address of filename
LPTSTR lpszReturnBuffer, // address of buffer for found filename
);

Return code soulh be non-zero.

Regards,

Wiebe.



"Dobi" wrote in message
news:50650000000800000023340000-1005954886000@exchange.ni.com...
> Is there a fast way of finding files in directories & subdirectories?
> I need a faster VI than the List Directory.
0 Kudos
Message 2 of 2
(2,869 Views)