Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access to file creation/modification dates
Message
 
 
À
04/08/2001 14:31:31
F. Bennett Swenson
Sundance Aerial Photography
Hurst, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00539816
Message ID:
00539988
Vues:
10
>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

It depends on what date you want. George Tasker wrote a utility available in the Download section File#9738 (http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,54,Forum=5,28,1260) that gives you the ability to manipulate creation, last update and last access dates. FDate() and ADir() only give you the last update date.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform