IPアドレスからホスト名を求めたい。
hostsには書いてある。
バッチを作成
who.bat
@echo off echo ******************* > who.txt echo hostsファイル検索結果 >> who.txt echo ******************* >> who.txt find "%1" %windir%\System32\drivers\etc\hosts >> who.txt notepad.exe who.txt
バッチを実行
who.bat <ip address>
-EOF-