Question:
Can I synchronize clocks between computers just by using E3?
Solution:
Yes. In the example below, two computers running E3Server are synchronized. The first one is called SERVER1, and the second one e SERVER2.
NOTE: The name of the server to be used is the same as the machine’s, not as the server’s as configured in E3 domain.
Sub Rectangle17_Click()
Dim WSHNetwork
Dim WSHShell
Set WSHNetwork = CreateObject(“WScript.Network”)
Set WSHShell = CreateObject(“WScript.Shell”)
IF WSHNetwork.ComputerName = “SERVER1” then
WSHShell.Run “net time \\server2 /SET /YES”, 0
ELSE
WSHShell.Run “net time \\server1 /SET /YES”, 0
END IF
End Sub