Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Users running an application
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00188060
Message ID:
00188155
Vues:
26
>>TO TEST FOR NEWER VERSION, are you using the fdate function? Or how do you test?
>
>I use the ADIR() function twice, once on the local drive and once on the server drive. I then compare the dates of the 2 files. If the local file is older than the server file, I set a flag, llNewVer = .T. If the dates are the same, I check the time of each file. If the time of the local file is earlier than the server, the llNewVer is set to .T. Then if llNewVer = .T. I copy the server file to the local directory.

P.S. I use the ADIR() way so I can loop through all the files that may be on the server and compare them to the list of files returned by ADIR() on the local drive. FDATE("myfile.app", 1) on the local compared to FDATE("myfile.app", 1) on the server is perfectly fine as well. I also want to copy files from the server that may not be on the local drive as well.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform