get pc name in LAN

D:\Users\***>ping -a ***.**.***.***

Pinging ROBIN [***.**.***.***] with 32 bytes of data:
Reply from ***.**.***.***: bytes=32 time=25ms TTL=128
Reply from ***.**.***.***: bytes=32 time=1ms TTL=128
Reply from ***.**.***.***: bytes=32 time=1ms TTL=128
Reply from ***.**.***.***: bytes=32 time=1ms TTL=128

Ping statistics for ***.**.***.***:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 25ms, Average = 7ms

"ROBIN" is the pc name of ***.**.***.***

wrong commond: ping ***.**.***.*** -a (test ever before)

原文地址:https://www.cnblogs.com/tiechui/p/1875896.html