>Hi All
>
>I need to create some kind of Time Synchronization scheme, but unfortunately I can not find a command to set the clock of the computer directly from VFP (VFP5a) and also a VFP command to retrieve the time from a server (NT Server).
>
>I hope someone can help me out.
The trivial way toget the date from a remote system is to FCREATE() a temporary file on the server; the time/date stamp on the file is determined by the system where the file is created, not the local workstation's time. Use ADIR() to retreive the time/date stamp on the file. Given that, there's a Win32 API function that will set the system clock to the new value. There's sample code in the FAQ that shows how to do this.