@echo off
rem 从nslookup命令返回的结果中提取特定内容
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
set "txtfile1=Listtxt"
if not exist "%txtfile1%" (echo;"%txtfile1%" 未找到&pause&exit)
for /f %%a in ('type "%txtfile1%"') do (
for /f "tokens=2" %%b in ('nslookup "%%~a" 2^>^&1 ^|findstr /ib "名称: Name:"') do (
echo;ip:%%a,名称:%%b
)
)
echo;%#% +%$%%$%/%@% %z%
pause
exit
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)