I need to adjust the time on windows, if i run this batch:
Code: Select all
net time /setsntp:ntp1.inrim.it
net stop w32time
net start w32time
But this code don't work:
Code: Select all
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.