回复 1# q995855 - @echo off
-
- set year=2021
- set day=/11/10
- set tim=23:59:55
- echo %day%
- date %year%%day%
- time %tim%
- echo %date%-%time%
- pause
-
- w32tm /unregister
- net stop w32time
- w32tm /register
- net start w32time
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w32time\Config" /v MaxNegPhaseCorrection /t reg_dword /d 999999999 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w32time\Config" /v MaxPosPhaseCorrection /t reg_dword /d 999999999 /f
- net stop w32time
- net start w32time
- w32tm /resync
- w32tm /resync
复制代码
|