每隔1秒调整系统时间-Bat批处理

2012-12-14  籽藤 

批处理脚本,实现每隔一秒钟调整系统时间...

Test.bat

@echo off
:1
ping 127.0.0.1 -n 1>nul
call "C:\Users\applewu\Desktop\ChangeTime.bat"
goto 1

ChangeTime.bat

@echo off

echo ==========================
echo Before changetime ,time is:
date /t
time /t

echo ==========================
echo Changing time 2008-09-21 18:17:32
date 2008-09-21
time 18:17:32.11

echo ==========================
echo After change time ,time is:
date /t
time /t

 

467°/4675 人阅读/0 条评论 发表评论

登录 后发表评论