当前位置: 首页 > 图文教程 > 脚本技术 > VBScript > vbs实现myipneighbors 域名查询结果整理

VBScript
VBS教程:函数-转换函数
VBS教程:函数-CLng 函数
VBS教程:函数-CInt 函数
VBS教程:函数-Chr 函数
VBS教程:函数-CDbl 函数
VBS教程:函数-CDate 函数
VBS教程:函数-CCur 函数
VBS教程:函数-CByte 函数
VBS教程:函数-CBool 函数
VBS教程:函数-Atn 函数
VBS教程:函数-Asc 函数
VBS教程:函数-Array 函数
VBS教程:函数-Abs 函数
VBS教程:在 VBScript 中使用对象
VBS教程:VBScript 与窗体
VBS教程:VBScript 页面的简单样例
VBS教程:VBScript 基础-VBScript编码约定
VBS教程:VBScript 基础-VBScript 过程
VBS教程:VBScript 基础-使用循环语句
VBS教程:VBScript 基础-使用条件语句

VBScript 中的 vbs实现myipneighbors 域名查询结果整理


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 87 ::
收藏到网摘: n/a

碰到虚拟机的时候,还是能偷点懒的 :-)
复制代码 代码如下:

On Error Resume Next
Set Arg=Wscript.Arguments
If Arg.count=0 then Wscript.quit
'code by NetPatch
'enjoy it
Set Fso=CreateObject("Scripting.FileSystemObject")
Set Gofile=Fso.OpenTextFile(Arg(0),1,false,-2)
Do while Gofile.Atendofline <> True
Data=gofile.readline
With fso.opentextfile(Arg(0)&".htm",8,true)
Data=replace(Data,"(view site)","")
Data=trim(replace(Data,mid(Data,1,InStr(Data,")")),""))
.Write "<table>"
.Write "<tr>"
.Write "<tr><td><a href='http://www.google.be/search?hl=zh-CN&q=site:"&Data&"&btnG=Google+' tArget='_blank'>Google_Site查询</a></td></tr>"
.Write "<td><a href='http://www."&Data&"' tArget='_blank'>www."&Data&"</a></td></tr>"
.Write "<tr><td><a href='http://www.google.be/search?hl=zh-CN&q=site:"&Data&"+inurl:asp|aspx|cfm&btnG=Google+' tArget='_blank'>查扩展映射(asp|aspx|cfm)</a></td></tr>"
.Write "<tr><td><a href='http://www.google.be/search?hl=zh-CN&q=site:"&Data&"+inurl:cgi|jsp|pl|py|php|php3&btnG=Google+' tArget='_blank'>查扩展映射(cgi|jsp|pl|py|php|php3)</a></td></tr>"
.Write "</table>"
.Writeline "<br><br>"
.close
End With
Loop
File.Close
Set Fso=Nothing
Wscript.Echo "ok"