需掃描區網尋找可用 IP 時,可建立批次工具:
IPTracker.bat:@Echo off & date /t > IPList.txt & time /t >> IPList.txt & echo =========== >> IPList.txt & For /L %%f in (1,1,100) Do Ping.exe -n 2 192.168.1.%%f Find "Request timed out." && echo 192.168.1.%%f Timed Out >> IPList.txt && echo off & cls & Echo Finished! & @Echo on & Notepad.exe IPList.txt192.168.1.x 替換為實際網段。IPList.txt,列出逾時(未使用)的 IP。
注意:僅適用 Windows XP Professional。可重複使用,方便排查 DHCP 問題。