vbs實現(xiàn)myipneighbors 域名查詢結果整理
更新時間:2009年07月27日 00:41:49 作者:
把myipneighbors查詢的結果COPY下來,然后保存后,拖到此腳本上,進行整理因為myipneighbors有驗證碼,能力有限,沒辦法突破..只能先這樣了.
碰到虛擬機的時候,還是能偷點懶的 :-)
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 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 tArget='_blank'>查擴展映射(asp|aspx|cfm)</a></td></tr>"
.Write "<tr><td><a 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"
復制代碼 代碼如下:
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 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 tArget='_blank'>查擴展映射(asp|aspx|cfm)</a></td></tr>"
.Write "<tr><td><a 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"
相關文章
iisweb.vbs iis網(wǎng)站管理腳本使用介紹
可以使用命令行腳本 iisweb.vbs(存儲在 systemroot\System32 中)在運行帶有 IIS 6.0 的 Windows Server 2003 家族成員的本地或遠程計算機上創(chuàng)建網(wǎng)站配置。該命令不創(chuàng)建或破壞內容,而只是設置目錄結構和某些 IIS 配置文件2014-07-07
VBS教程:VBscript屬性-IgnoreCase 屬性
VBS教程:VBscript屬性-IgnoreCase 屬性...2006-11-11把vbscript發(fā)揮到它的極限應用之一(數(shù)組)?。?!
把vbscript發(fā)揮到它的極限應用之一(數(shù)組)!?。?..2007-05-05
Dynamic Activity Window動態(tài)活動窗口vbs
Dynamic Activity Window動態(tài)活動窗口2008-12-12
VBS 強制關閉Symantec Endpoint Protection的代碼
很多企業(yè)電腦系統(tǒng)是Windows Xp,使用Windows server 2003 來控制,其中客戶端得殺毒軟件有不少是使用 Symantec Endpoint Protection2013-01-01

