Getting the hard drive serial number
Function HdNum() As String
Dim fsObj As Object
Dim drv As Object
Set fsObj = CreateObject("Scripting.FileSystemObject")
Set drv = fsObj.Drives("C")
HdNum = Hex(drv.serialnumber)
End Function
Sub HD()
MsgBox HdNum
End Sub
Since each computers hdd serial number is unique this can be useful for security
»
- AndyLitch's blog
- Login or register to post comments
- 17922 reads
Recent comments
5 years 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago