Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date of creation of a file
Message
 
 
To
03/01/2002 02:44:01
Bruno Maddalozzo
Informatica Aziendale
Arsie, Italy
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00600132
Message ID:
00600216
Views:
40
>Right-clicking on a file, using Windows-Explorer, and then selecting we get some information about the file itself, included the dates the file was created, modified, accessed.
>I have the need to get the date of CREATION of the file (not the date of the last modification). The files to test aren't VFP tables.
>Is there a way to get the date (preferrebly using VFP)?. Adir() and Dir() don't give me the information.
>
>TIA
>Bruno Maddalozzo

To get a creation date you can use FileSystemObject.
oFys = CreateObject("Scripting.FileSystemObject")
oFile = oFys.GetFile(cFileName)
ltCreated  =  oFile.DateCreated
ltAccessed = oFile.DateLastAccessed
ltModified = oFile.DateLastModified
or download file#9316 if WSH is not an option.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform