回复 1# likeyou32 - @echo off
- rem 建议保存为ANSI编码格式
- for /f "tokens=1-2 delims=: " %%a in ('powershell "(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime"') do set "%%a=%%b"
- echo;系统运行时长为:%Days%天%Hours%时%Minutes%分%Seconds%.%Milliseconds%秒
- pause>unl
复制代码
|