Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to synchronize workstations datetime and server?
Message
De
07/09/2005 23:50:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01047584
Message ID:
01047593
Vues:
28
Hi Jess,

Try this, You can incorporate this code suitably. Replace 'myServer' with server name suitably and can be done with a function as well.

myServerName = "myServer"
lcCmd = GETENV("ComSpec") + " /C NET TIME \\"+ ;
myServerName+" /SET /YES"
loShell = CREATEOBJECT("wscript.shell")
loShell.Run(lcCmd,0,.t.)


>Folks, how do you synchronize workstation's datetime with server's datetime on the fly? This problem becomes urgent to us because some users tend to change their workstation's datetime and do something illegal so that if they're caught, they can easily blame the system.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform