Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking Server Time
Message
 
À
30/08/2005 11:55:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01045173
Message ID:
01045194
Vues:
27
>>There is probably some API, but I just created a temporary file on a shared folder on the server, and asked for the time of its creation with the appropriate file functions. The file should get the date/time of the server, not of the local machine.
>>
>
>That sounds like a nice, easy way (I wasn't aware that creating a file on the server would give it the server's date/time).
>
>Of course, my next question is how to find the date/time of a file's creation. I've had a search under vfp, but don't see a straightforward command to do this.
>What's the best way to do it?
>
> -Kevin.
 ADIR(your_array,'path_to_server_and_shared_folder\create_file_name')
*** your_array[1,1] = File name (C)
*** your_array[1,2] = File size (N)
*** your_array[1,3] = Dates last modified (D) ---> test this
*** your_array[1,4] = Times last modified (C) ---> test this
*** your_array[1,5] = File attributes (C)
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform