Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Does each computer has a unique identifier?

Status
Not open for further replies.

Guest
Hi,
I am trying to write a program which can only install in some computers. Does each computer has a unique identifier?

 
Replies continue below

Recommended for you

I have 2 approaches:
1. Use conditional if statements (#If). The following is an example of what I know is supported:

#If Mac Then
'. Place exclusively Mac statements here.
#ElseIf Win32 Then
'. Place exclusively 32-bit Windows statements here.
#Else
'. Place other platform statements here.
#End If

2. Use SysInfo control (SysInfo.ocx). Example:
Dim MsgEnd As String
Select Case sysDetectOS.OSPlatform
Case 0
MsgEnd = "Unidentified"
Case 1
MsgEnd = "Windows 95, ver. "& _
CStr(sysDetectOS.OSVersion) & "(" & _
CStr(sysDetectOS.OSBuild) & ")"
Case 2
MsgEnd = "Windows NT, ver. " & _
CStr(sysDetectOS.OSVersion) & "(" & _
CStr(sysDetectOS.OSBuild) & ")"
End Select
MsgBox "System: " & MsgEnd
Note: sysDetectOS referenced to a SysInfo object.
 
Status
Not open for further replies.
Back
Top