Dear friends,
I need to adjust the time on windows, if i run this batch:
the time is correctly updated.
But this code don't work:
any suggestion?
Many thanks in advance.
I need to adjust the time on windows, if i run this batch:
net time /setsntp:ntp1.inrim.it
net stop w32time
net start w32timeBut this code don't work:
WinExec( "net time /setsntp:ntp1.inrim.it", SW_HIDE )
WinExec( "net stop w32time", SW_HIDE )
WinExec( "net start w32time", SW_HIDE )Many thanks in advance.
Ciao, best regards,
Ugo
Ugo