Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access to file creation/modification dates
Message
 
 
To
04/08/2001 14:31:31
F. Bennett Swenson
Sundance Aerial Photography
Hurst, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00539816
Message ID:
00539821
Views:
12
You can use ADIR() function
 DIMENSION laList[1]
lcFileName = "Myfile.txt"
lnFiles = ADIR(laList, lcFileName)
* lnFiles - # of files in array
?  laList[1,3]      && Date last modified
?  laList[1,4]      && Time last modified
>It there a VFP function similar to FILE() that will return the date of the file, if the file exists?
>
>I want to copy some files from a source directory to a destination directory, BUT
>only if the source file either does not exist in the destination directory OR if it does,
>the source file has a later (more recent) date than the file with the same name in the destination directory.
>
>Yes, this is for a cheap back up program.
>
>TIA
>
>F. Bennett Swenson
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform