Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function GetSerial(Optional ByVal Disp As String) As String
Dim fso As Object
Dim Drv As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Set Drv = fso.GetDrive("C")
With Drv
If .IsReady Then
GetSerial = Abs(.SerialNumber)
Else
GetSerial = -1
End If
End With
Set Drv = Nothing
Set fso = Nothing
If Disp = "Y" Then
MsgBox "Serial : " & GetSerial
End If
End Function