Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Synchronize the computer's time
Good Morning,
I would like to synchronize the computer's time with the time of a server on the net that is pointed to the following time: '0.europe.pool.ntp.org'
I'm using the following command, but it doesn't work, any help is welcome:
DECLARE INTEGER ShellExecute IN shell32.DLL ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
ShellExecute(0,"runas","cmd.exe","net stop w32time","",0) && sometimes Admin rights are needed!
ShellExecute(0,"runas","cmd.exe","w32tm/config/manualpeerlist:0.europe.pool.ntp.org, 0X8, sincfromflags:manual","",0) && sometimes Admin rights are needed!
ShellExecute(0,"runas","cmd.exe","net start w32time","",0) && sometimes Admin rights are needed!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement