内容显示页
 
类别:服务器相关 | 浏览(314) | 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


引用本页地址:http://www.yongfa365.com/item/Dos-Comment-Quict-Find-Web-IP.html
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片看不清? 换张图试试
 
   
 
 
文章分类
 
   

power by :柳永法(yongfa365)'Blog | model by :hibaidu | css by:众网友 | 京ICP备07011491号   我要统计  

本空间赞助商:北京中科兴联信息技术有限公司

QQ:64049027    E-mail:64049027<at>qq.com