@echo off
echo 修改时间到2020-01-01
:start
set nowyear=%date:~0,4%
echo %nowyear%
if %nowyear% == "2020" (echo 当前时间 %date%) else date 2020-01-01
ping 127.0.0.1 -n "2">nul
goto start
pause
@echo off
echo 修改时间到2020-01-01
:start
set nowyear=%date:~0,4%
echo %nowyear%
if %nowyear% == "2020" (echo 当前时间 %date%) else date 2020-01-01
ping 127.0.0.1 -n "2">nul
goto start
pause