Migrated From JP Software Wiki
whois.btm looks up an IP address and displays the URL.
Usage: whois 11.22.33.44
Displays: 11.22.33.44 = xyz12.sample.com
whois.btm looks up an IP address and displays the URL.
Usage: whois 11.22.33.44
Displays: 11.22.33.44 = xyz12.sample.com
Code:
: whois.btm
: Run whois and display URL
: by Joseph "Rick" Reinckens
: Usage: whois IP_address
@echo off
setlocal
if not "%1"=="" goto get_it
echo *** IP address parameter needed ***
goto done
:get_it
set ipname=%@ipname[%1]
if not "%ipname"=="11004" goto show_it
echo *** No IP address found ***
goto done
:show_it
echo %1 = %ipname
:done
endlocal