Retrieve the computer name
Retrieve the computer name
Rate Retrieve the computer name
(2(2 Vote))
Dim lngBufSize As Long
Dim lngStatus As Long
lngBufSize = 255
strBuffer = String$(lngBufSize, " ")
lngStatus = GetComputerName(strBuffer, lngBufSize)
If lngStatus <> 0 Then
MsgBox ("Computer name is: " & Left(strBuffer, lngBufSize))
End If
Retrieve the computer name Comments
No comments yet — be the first to post one!
Post a Comment