日期:2014-05-17 浏览次数:20852 次
@echo off cls for /f "tokens=2 delims==" %%a in ('wmic path Win32_OperatingSystem get localdatetime /value') do (call :resulttime %%a) echo.&echo.&echo. pause exit :resulttime set tt=%1 set ht=%tt:~8,2% set mt=%tt:~10,2% set st=%tt:~12,6% echo 当前时间: %ht%:%mt%:%st%