LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Give a handmake function to search all files in the directory.

To scan drive, folder, ets.

 

I maked this, but my function is big bleep, a devil will break his legs here.

 

Need small workable solution.

 

 

Message 1 of 3
(3,909 Views)

Sergey,

 

Here is an example file which looks through every file in a directory.http://zone.ni.com/devzone/cda/epd/p/id/2157

 

It should save you some time if you are having issues with your code. 

 

Regards,

 

Kyle Mozdzyn

Applications Engineering

National Instruments

Regards,

Kyle M.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(3,820 Views)

There is a filebrowser custom control (toolslib\custctrl\FileBrowser.fp) that has an example of how you can do this with GetFirstFile and GetNextFile functions from the Utility Library. In FileBrowser.c check out PopulateListFromPath.

 

You can drop a file browser custom control in the UI editor to play around with it by right-clicking a panel in the UI editor in edit mode, and selecting Custom Controls>>Toolslib Controls>>File Browser.

0 Kudos
Message 3 of 3
(3,749 Views)