Web History Access

Hi, in my program, I want to access web history.

Web history is stored in the username's documents and settings...

I could reference to C://Documents and Settings/username/history location w/e in a web browser

but the username changes from user to user, so how would I make it so that i can access the history (anyway) and display it in the program (i believe the only way is a web browser)...

[400 byte] By [GeekSquad] at [2007-12-24]
# 1

Dim MyHistoryFolder as string = Environment.GetFolderPath(Environment.SpecialFolder.History)

DMan1 at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
Thanks.
GeekSquad at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

But how do you access the information in this directory?

Dim MyHistoryFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.History)

Dim IDs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)

IDs = My.Computer.FileSystem.GetFiles(MyHistoryFolder)

This contains only 1 item (Desktop.ini), I would like to be able to access the URLs for the web pages visited today

unthreaded at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 4

The file you need to scan is called index.dat located in the History folder, History folder is a special folder and so internally for some reason hides the index.dat from normal directory searches. There are several copies of index.dat, I guess some have specific days in them.

You may have to Google around to find the format of the file so you can read and interpret it ...Found something like reasonable at http://www.milincorporated.com/a_indexdat.html

Good Luck.

Rabtok at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...