Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking Server Time
Message
 
To
30/08/2005 11:55:24
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01045173
Message ID:
01045194
Views:
29
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform