Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Server date
Message
 
To
30/12/2005 02:46:40
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01081949
Message ID:
01081959
Views:
11
Hi James,
Just create a temporary file on a shared folder on the server, and ask 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.
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)
additional see: How to use the NetRemoteTOD function to obtain date and time information from a server http://support.microsoft.com/kb/249716/EN-US/.



>Hi, how to retrieve server date & time and display in the application. I am on VFP 8 and server OS is MS NT 4 and MS server 2003.
>
>Happy New year
>
>Rgds
>james
_______________________________________________________________
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