本帖最后由 batman 于 2013-9-3 17:40 编辑
为你解决问题后,请把钱捐到论坛基金中,具体事项找Batcher。。。 | Dim objDOM, objSHELL, objFSO, Path | | Set objSHELL = CreateObject("Wscript.Shell") | | Set objFSO = CreateObject("Scripting.FileSystemObject") | | Path = objSHELL.CurrentDirectory & "\" | | Set objDOM = GetObject(Path & "web.html","htmlfile") | | Do Until objDOM.Readystate = "complete" : WScript.Sleep 200 : Loop | | Dim objTRs, objTR, objTexts, objText, subStr, Wstr | | Set objTRs = objDOM.GetElementsByTagName("TR") | | For Each objTR In objTRs | | If InStr(objTR.InnerText, "点击查看") Then | | Set objTextS = objTR.GetElementsByTagName("td") | | subStr = vbNullString | | For each objText In objTextS | | url = Split(objText.InnerHtml, Chr(34)) | | subStr = subStr & objText.InnerText & " " | | Next | | If InStr(Wstr, subStr) = 0 Then Wstr = Wstr & subStr & " "& url(1) & vbCrLf | | End If | | Next | | objFSO.OpenTextFile("list.txt",2,1).Write Wstr | | objSHELL.Run "cmd /cstart list.txt", 0, 0 | | Set objDOM = Nothing | | Set objFSO = Nothing | | Set objSHELL = NothingCOPY |
|