@echo off set nowtime=%date%
echo 2015-07-01|date
ping 127.255.255.255 -n 1 -w 5000 >nul
echo %nowtime%|date
exit
批处理,执行修改时间,等5秒后重新改回来
原文:http://www.cnblogs.com/szlixin/p/4796754.html