Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

os detect

Status
Not open for further replies.

mahzan

Programmer
Jun 13, 1999
2
MY
Does anyone know how to detect client's operating system (only the os string)? I've used request.servervariables("http_user_agent"), but I want to eliminate all other strings exept the os type.
 
Dim strAgent<br>
strAgent = Request.Servervariables("HTTP_USER_AGENT")<br>
<br>
Response.Write Parse (strAgent) <br>
<br>
Function Parse (strAgent)<br>
Dim aryAgentElems, strOS<br>
aryAgentElems = Split(strAgent, ";")<br>
strOS = aryAgentElems(2)<br>
Parse = strOS <br>
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top