内容显示页
 
类别:服务器+软件 | 浏览(1425) | 2007-8-8 23:37:31
@echo off
for /f %%h in (hostlist) do call :back %%h
ping /n 5 127.1>nul 2>&1

:back
set temp=%1
for /f "skip=1 delims=[] tokens=2" %%i in ('ping /n 1 %1') do call :set %%i
echo %1=%temp%
goto :eof

:set
if "%1"=="" goto :back
set temp=%1
goto :eof

太帅了,程序由ice_log提供

hostlist是一个文本文件,里面一行放一个网址就可以

来一个更快的找域名对应IP的方法(其实就是加了个参数):

@echo off
for /f %%h in (hostlist.txt) do call :back %%h
::ping /n 5 127.1>nul 2>&1

:back
set temp=%1
for /f "skip=1 delims=[] tokens=2" %%i in ('ping /n 1 /i 1 %1') do call :set %%i
echo %1	%temp%
goto :eof

:set
if "%1"=="" goto :back
set temp=%1
goto :eof


引用:
DOS命令快速批量找出网站域名对应的IP地址
http://www.yongfa365.com/item/Dos-Comment-Quict-Find-Web-IP.html
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片 看不清? 换张图试试
 
     
 
 
文章分类
 
 
.Net + C#(74)
 
 
ASP+VBS(161)
 
 
 
Linux(10)
 
 
 
web 2.0(26)
 
 
 
 
 
心程(68)
 
生活(97)
 
 
     

Power by :柳永法(yongfa365)'Blog  | 京ICP备07011491号  QQ:64049027  E-mail:64049027@qq.com Weibo

申请友情链接 要求:跟本站主题相类似正规网站,双方交换为首页位置

转载请注明来源,以便后人及时得到最新、修正、加强版!!!