SetToday and SetClock not working on Windows 10


I use SetToday and SetClock to synchronize workstations’ date and time with
IP Server. After upgrading to Windows 10 it stopped working.
Is there another way to do that ?


Tosho Tonchev

If you read about the API function SetSystemTime() that Clarion’s SetClock probably calls your program will need to be running as Administrator. Since Windows 7 Microsoft has been securing more functions that do not allow Standard User Rights to call them.

I would setup a separate SetSystemTime.EXE with a manifest that requires Elevation to Admin. I don’t think you can RUN() that you have to use ShellExecute for Elevation. The UAC Confirmation will show.