判斷客戶端操作系統
Function GetOs(content
Dim temp
temp = Split(content
Select Case systemOrBrowser
Case
If InStr(Content
GetOs = "Windows Vista"
ElseIf InStr(Content
GetOs = "Windows
ElseIf InStr(Content
GetOs = "Windows XP"
ElseIf InStr(Content
GetOs = "Windows
ElseIf InStr(Content
GetOs = "Windows NT"
ElseIf InStr(Content
GetOs = "Windows
ElseIf InStr(Content
GetOs = "Unix"
ElseIf InStr(Content
GetOs = "Linux"
ElseIf InStr(Content
GetOs = "SunOS"
ElseIf InStr(Content
GetOs = "BSD"
ElseIf InStr(Content
GetOs = "Mac"
Else
GetOs = "Other"
End If
Case
If InStr(content
GetOs = Replace(Left(content
ElseIf InStr(content
GetOs = Trim(temp(
Else
GetOs = Replace(Right(temp(
End if
End Select
End Function
From:http://tw.wingwit.com/Article/program/net/201311/14241.html