Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to syncronize a network ?
Message
De
06/05/2000 10:20:05
 
 
À
06/05/2000 05:06:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00366440
Message ID:
00366951
Vues:
17
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform