去比一比系统目录里哪些东西不一样..........winxp x86下测试 可能不准......
$vercode = ""
$sysver = ""
If (Not FileExists("C:\WINDOWS\syswow64"))And FileExists("C:\WINDOWS\system32\kernel32.dll") Then
$vercode = FileGetVersion("C:\WINDOWS\system32\kernel32.dll", "FileVersion")
Else
$vercode = FileGetVersion("C:\WINDOWS\syswow64\Wow64.dll", "FileVersion")
EndIf
$sysver = StringLeft($vercode, 3)
Switch $sysver
Case "5.0"
$sysver = "Win 2000"
Case "5.1"
$sysver = "Win XP"
Case "5.2"
$sysver = "Win 2003 server"
Case "6.0"
$sysver = "Vista"
Case "6.1"
$sysver = "Win7"
EndSwitch
If FileExists("C:\WINDOWS\syswow64") Then
$sysver &= " --- x64"
Else
$sysver &= " --- x86"
EndIf
MsgBox(0, "C盘系统为", $sysver)
|