Data Access Worldwide Knowledge Base
Article ID 2193 Article Title HOWTO: Read directory information using structs and arrays in Visual DataFlex Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2193 KBase Category VDF11 Date Created 11/21/2005 Last Edit Date 05/03/2006
Article Text
This knowledge base article was written to demonstrate how you can make use of structs and arrays features that are new to Visual DataFlex as of revision 11.0.
The attached files show you how to read the directory information of a given folder (path) to an array and return the filenames plus their create date, last accessed and last write datetime values.
Note (Jan 2nd 2006)
The sample code published in November 2005 returns the filetimes as UTC as is documented at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/time_functions.asp. With the function described at http://msdn.microsoft.com/library/en-us/sysinfo/base/filetimetolocalfiletime.asp the local time can be used. The function is already in the package.
The enclosures have been updated to make it all easier.
Contributed By:
Vincent Oorsprong
Company: Data Access Worldwide
email: vincent.oorsprong@dataaccess.eu
Web Site: http://www.dataaccess.eu
Web Links Related to this Article
File GetFileInformation.vw
URL=http://www.dataaccess.com/KBasePublic/Files/2193.GetFileInformation.vw
File gFileDateTime.Pkg
URL=http://www.dataaccess.com/KBasePublic/Files/2193.gFileDateTime.Pkg
DAW Knowledge Base article 1184: HOWTO: Get information about a disk file using the Windows API
URL=http://www.dataaccess.com/KBPrint.asp?ArticleID=1184
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.