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
Printable View
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
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.
Write to a file when navigation is completed:
VB Code:
Private Sub brwWebBrowser_NavigateComplete2(ByVal pDisp As Object, URL As Variant) Open App.Path & "\visited_pages.txt" For Append As #1 Print #1, URL Close #1 End Sub
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.Quote:
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.
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.Quote:
Write to a file when navigation is completed:
Any other ideas/suggestions? Anyone else?
Thanks,
Arpan
Try this post
You're not serious I hope. ;) Very very unreasonable wish...Quote:
Originally Posted by arpan_de