回复 1# dong3626 - @echo off
- for /f "tokens=3" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "DisplayVersion"') do (
- set pgPath2=%%i
- )
-
- for /f "tokens=1,2,*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName"') do (
- set pgPath1=%%c
- )
-
- @echo 当前系统版本为:%pgPath1% %pgPath2%
- pause
复制代码
|