- @echo off
- for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
- if exist %%i:\windows\system32\version.dll echo %%i&wmic datafile where "name='%%i:\\windows\\system32\\version.dll'" get version
- )
- pause
-
-
- if (buf == "5.0.") then
- sysver = "Windows 2000"
- elseif (buf == "5.1.") then
- sysver = "Windows XP"
- elseif (buf == "5.2.") then
- sysver = "Windows Server 2003"
- elseif (buf == "6.0.") then
- sysver = "Windows Server 2008"
- elseif (buf == "6.1.") then
- sysver = "Windows 7"
- elseif (buf == "6.2.") then
- sysver = "Windows 8"
- elseif (buf == "6.3.") then
- sysver = "Windows 8.1"
- elseif (buf == "10.0") then
- sysver = "Windows 10"
复制代码
|