Date & Time adjust
Posted: Wed Nov 25, 2009 8:34 am
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:
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.