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