[Sync Time] - A Script2Service Demo Project


This service retrieves time from a number of Internet Time servers and adjust the computer clock every two hours.

Source Files
S2S_TimeSync.js The main script file, implementing a infinit loop that adjust the computer clock every 2 hours until the service stops.
GetNetTime.js Get Internet time using UDP.
Build and install the Service
Call service functions from outside

In the 'App\WScript' sub-folder, there is a javascript file named GetTime.js This is a programm for the Windows 'CScript/WScript'.