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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement