Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date and time from another computer
Message
From
10/09/2004 00:33:11
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00940509
Message ID:
00940927
Views:
17
>Haw can I get date and time from another computer in net example from dedicated server ?

If you have Internet access and you're running Windows NT or higher, you can use the NET TIME command with the SNTP option, and thereby set your computer's time using the NTP server of your choice.

http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/windowsxp/home/using/productdoc/en/net_time.asp

If I recall correctly, the Windows Time Service must be running to use the SNTP option.

I like to use the U.S. Naval Observatory's NTP time servers, aptly named "tick" and "tock". From a Windows Command window (CMD.EXE):
NET TIME /setsntp:tick.usno.navy.mil
* OR
NET TIME /setsntp:tock.usno.navy.mil
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform