
December 22nd, 2003, 02:04 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Location: Seattle, WA
Posts: 55
Time spent in forums: 5 m 20 sec
Reputation Power: 6
|
|
|
Detect OS
Hello all. I am writing a script that will automatically detect the Operating System. So far I have:
Code:
<%
dim os
os = request.servervariables("http_user_agent")
if instr(os, "Windows NT 5.2") > 0 then
response.write "Windows 2003 in use"
elseif instr(os, "Windows NT 5.1") > 0 then
response.write "Windows XP in use"
elseif instr(os, "Windows NT 5.0") > 0 then
response.write "Windows 2000 in use"
elseif instr(os, "Windows NT 4.0") > 0 then
response.write "Windows NT in use"
else
response.write "Some other OS in use: " & os
end if
%>
I would simply like to detect Windows 98, ME, 95, etc. Does anyone know what I would use to detect these? "Windows NT..."
Thanks in advance for your help.
|