LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetFirstFile GetNextFile

Hellow there

Does GetFirsFile / GetNextfile return the file names in sorted order(alfabeticly) or i must sort the incomming
file names manualy

Thanks for advance

Gabel Daniel
0 Kudos
Message 1 of 5
(3,644 Views)
Hello Gabel,

Using GetFirstFile and GetNextFile will return files in alphabetical order.


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 5
(3,609 Views)
Hello again,

I'm not sure what your application is, but I came across this interesting example using GetFirstFile and GetNextFile. It may be helpful in your development.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=BB1050C9963626C5E034080020E74861&p_node=DZ52146&p_source=External

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 5
(3,606 Views)
Hi Wendy

Thanks for your answer.
In All CVI doc's and help files your answer is not documented,i think it is an iportand fact to add to cvi help files.

as for my application: it reads files of data that was stored erlier by a2d system and 'playback' it
by a similar d2a system in the correct chronology.One of the tasks of my application is to retrive the data files
in the correct order as they was stored.The a2d application stores the file in the order thet the date/time is
embeded in the file name.

Thanks

Gabel Daniel
0 Kudos
Message 4 of 5
(3,588 Views)
I think the GetFirstFile/GetNextFile functions return files in the 'natural' order of the filing system. For NTFS partitions, this happens to be alphabetical order (because the directories are properly indexed); but there is no guarantee that this will be true for FAT partitions (and probably won't be).

Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 5 of 5
(3,572 Views)