Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to syncronize a network ?
Message
From
06/05/2000 10:20:05
 
 
To
06/05/2000 05:06:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00366440
Message ID:
00366951
Views:
18
>>>Is it possible to programmatically change the system time ?
>>>is it possible to get the time of another PC ?
>>>
>>>Thanks again
>>
>>Alessio,
>>See my FAQ about this. It's under the WIN32API & Other APIs section. However, the machines must be NT (workstation or server). The API functionality is not supported under Win9X.
>
>I was thinking to run a program in background which wrote the system time in a
>file, so that the other machines could read it and upgrade their time
>through it.
>Do u think it could work ?

There's almost no chance of getting it this way, because the time written in the file is static. The easiest thing to do is to have the local system create a temporary file on the server and immediately read it's creation time - the timestamp for the file uses the server machine's time, so you adjust the time on the local workstation to match the server's time.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform