Results 1 to 6 of 6

Thread: Save All Web Pages!

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Thumbs up Save All Web Pages!

    I am using the WebBrowser control in a VB6 application. I want to save all the web pages that a user visits in a folder (in the same way as how IE dumps all the pages visited in the Temporary Internet Folder). How do I accomplish this?

    Thanks,

    Arpan

  2. #2
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Save All Web Pages!

    When you goto a page using the webbrower, it will already add the websites in the temporary internet folder. If you want to list the sites that a person has visited (and not actually download the file onto the hard drive) then you need to write it in a file using > open filename for output as #1 etc. If its the actual website, i don't really see a point as it will be just wasting space as the website would already exist in the temp... folder.

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Save All Web Pages!

    Write to a file when navigation is completed:
    VB Code:
    1. Private Sub brwWebBrowser_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
    2.     Open App.Path & "\visited_pages.txt" For Append As #1
    3.         Print #1, URL
    4.     Close #1
    5. End Sub

  4. #4

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Save All Web Pages!

    When you goto a page using the webbrower, it will already add the websites in the temporary internet folder. If you want to list the sites that a person has visited (and not actually download the file onto the hard drive) then you need to write it in a file using > open filename for output as #1 etc. If its the actual website, i don't really see a point as it will be just wasting space as the website would already exist in the temp... folder.
    Well, Andrew, I want to make my WebBrowser application to be, as far as possible, independent of IE. If you haven't understood what I mean by the preceding sentence, please have a look at post #5 at http://www.vbforums.com/showthread.php?t=373869. That's the reason why I want to save all web pages that a user visits in a folder which will be created by my browser application.
    Write to a file when navigation is completed:
    Rhino, my intention is not to populate a text file with the URLs; rather I want to save each & every page the user has visited in a folder.

    Any other ideas/suggestions? Anyone else?

    Thanks,

    Arpan

  5. #5
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Save All Web Pages!

    Try this post

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width