@echo off
cls
color 2f
cd /d %~dp0
Echo.&&Echo.正在与Internet时间服务器同步……&&Echo.===================================================
wget -N http://weasel.jgxx.com/wsqbbs/time.php >nul 2>nul
title 瓦斯曲-同步时间服务器工具
for /f "tokens=1,2 " %%i in (time.php) do date %%i &&time %%j
for /f "tokens=1,2 " %%i in (time.php) do echo 同步成功!!&& echo 服务器日期 %%i 系统日期 %date% &&echo 服务器时间 %%j 系统时间 %time%
del /f /s /q time.php >nul 2>nul
Echo.==================================================&&Echo.按任意键退出!!&&pause>nul 2>nul |
|