vbs实现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 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"
将VBS或ASP中的代码转成一句话形式
结果发现,有TABLE不行类似ifxx=1thenyy=2的也不行...//此脚本支持拖放,也可以在命令行下使用cscriptchange.vbsxx.aspOnErrorResumeNextSetArg=Wscript.ArgumentsIfArg.Count=0Thenwsc
修改 Gateway和DNS的vbs脚本
ConstT_GATEWAY="1.1.1.1"'网关ConstT_NEWDNS1="2.2.2.2"'DNS1ConstT_NEWDNS2="3.3.3.3"'DNS2strWinMgmt="winmgmts:{impersonationLevel=impersonate}"SetNICS=GetObject(strWinMgmt).InstancesOf("Win32_NetworkA
VBS sendkeys 模拟击键操作 问题解决
'======================================'VBS中SendKeys模拟键盘击键'2009-07-26'刘林'======================================DimWshShellSetWshShell=WScript.CreateObject("WScript.Shell")WshShell.Ru
编辑:广州明生医药有限公司
标签:脚本,击键,也可,句话,网关