用vb如何可以获取远程页面内容并且保存到一个txt文本中呢?

解决方案 »

  1.   

    http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=87908
    http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=39056
      

  2.   

    http://blog.csdn.net/online/archive/2004/09/04/94105.aspx
    Private Sub Command2_Click()Inet1.CancelIf Len(Inet1.OpenURL("http://localhost/xml\tt.htm")) <> 0 Then    MsgBox "已经连接"    Text2.Text = Inet1.OpenURL("http://localhost/xml\tt.htm")    If Inet1.StillExecuting Then       DoEvents    End If    '保存到文件    Open App.Path & "\index.htm" For Output As #1        Print #1, Text2.Text    Close #1Else    MsgBox "没有连接"End IfEnd Sub.