在 WinXP 下需追蹤特定 IP 範圍內未被使用的位址,可建立批次檔自動化處理。以 192.168.1.1 至 192.168.1.100 為例:
&& 連接):@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.txt
IPTracker.bat 並執行,結果將輸出至 IPList.txt,僅列出未回應的 IP。須將範例 IP 替換為實際網段。此法亦適用於 Win7 等較新系統,參考價值高。