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
- 18151 reads
Recent comments
6 years 10 weeks ago
6 years 48 weeks ago
7 years 8 weeks ago
7 years 11 weeks ago
7 years 12 weeks ago
7 years 17 weeks ago
7 years 25 weeks ago
7 years 26 weeks ago
7 years 26 weeks ago
7 years 26 weeks ago