Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub checkOS()
  2.         Dim os As String = LCase(My.Computer.Info.OSFullName.ToString())
  3.         Dim sp As String = LCase(My.Computer.Info.OSVersion())
  4.         If (os.Contains("xp") = True) Then
  5.             MsgBox("windows 7 up in this bisnach" & vbCr & sp)
  6.  
  7.         ElseIf (os.Contains("vista") = True) Then
  8.             MsgBox("windows 7 up in this bisnach" & vbCr & sp)
  9.         ElseIf (os.Contains("7") = True) Then
  10.             MsgBox("windows 7 up in this bisnach" & vbCr & sp)
  11.         Else
  12.             'some other system
  13.        End If
  14.  
  15.  
  16.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement