如何用asp判断客户的操作系统

来源:百度知道 编辑:UC知道 时间:2024/06/28 03:00:09
请进来的大侠们赐教了:
如果访问者用的是xp,怎么用asp判断是perfeesional还是home edition?
还有如果是2000或者xp怎么判断是sp1还是sp2之类?(2000好像一直到sp5)

再次申明,我想判断的不是操作系统是不是98,me,2000或者xp
而是如上部分,小弟这里谢谢先~~~

承诺:正解者必追分!!!

function operationsystem() '操作系统版本
agent = Request.ServerVariables("HTTP_USER_AGENT")
if Instr(agent,"NT 5.1")>0 then
SystemVer="Windows XP"
elseif Instr(agent,"NT 5")>0 then
SystemVer="Windows 2000"
elseif Instr(agent,"NT 4")>0 then
SystemVer="Windows NT4"
elseif Instr(agent,"4.9")>0 then
SystemVer="Windows ME"
elseif Instr(agent,"98")>0 then
SystemVer="Windows 98"
elseif Instr(agent,"95")>0 then
SystemVer="Windows 95"
else
SystemVer="未知"
end if
operationsystem="操作系统: " & SystemVer
end function