For $i=1 To 254 Step 1
$z1 = "192.168.0."& (100+$i)
$z2 = Ping($z1,10)
ConsoleWrite($z1 & @TAB & $z2 & @CRLF)
Next
1 表示在线
0 表示离线,或者不存在
Remarks
When the function fails (returns 0) @error contains extended information:
1 = Host is offline
2 = Host is unreachable
3 = Bad destination
4 = Other errors