回复 3# testest - @echo off & setlocal enabledelayedexpansion
-
- :main
- for /F "tokens=1,2 delims==" %%i in ('wmic os get InstallDate /value') do (
- if not "%%j"=="" (
- set "msg=%%j"
- echo !msg:~0,4!/!msg:~4,2!/!msg:~6,2! !msg:~8,2!:!msg:~10,2!:!msg:~12,2!
- )
- )
- pause
- goto:eof
复制代码
|