GetHostEntry
GET HOSTNAME!!!
----------------
Public Function GetComputerName() As String
Dim ComputerName As String
ComputerName = System.Net.Dns.GetHostEntry("").HostName ' System.Net.Dns.GetHostName
Return ComputerName
End Function
----------------
Public Function GetComputerName() As String
Dim ComputerName As String
ComputerName = System.Net.Dns.GetHostEntry("").HostName ' System.Net.Dns.GetHostName
Return ComputerName
End Function
ไม่มีความคิดเห็น