Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

WinXP 如何取得區網未使用 IP 位址?批次檔 Ping 掃描法(同 40778)

編輯:XP 系統應用技巧

(本文內容與 ID 40778 重複,皆為使用批次檔 Ping 掃描取得未使用 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.txt

使用方式

  1. 存為 IPTracker.bat,修改 IP 網段為實際環境。
  2. 雙擊執行,自動掃描並以記事本顯示未使用 IP 清單。
  3. 可重複使用,適合網管快速規劃靜態 IP。

IP 掃描結果範例

注意:For...Do 命令必須寫在單一行,IP 範圍請依實際網段調整。
Copyright © Windows教程網 All Rights Reserved