VB.NET Collect Windows Internet History into text document

Developing a app to collect internet explorer history for windows xp machines.
What I would like for this code to do would be to collect all the data in the history folder/subfolders and line by line, item by item record those itmes into a log.

Public Class Form1
    Dim DumpPath As String = "C:\TestDump\"
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        lblUsername.Text = SystemInformation.UserName
        For Each HistoryItem As String In _
        My.Computer.FileSystem.GetFiles("c:\Documents And Settings\" & lblUsername.Text & "\local settings\History\", FileIO.SearchOption.SearchTopLevelOnly)
            listBox.Items.Add(HistoryItem)
        Next
        'Create Text File
        For Each ListItem In listBox.Items
            'Dim fileDetail As IO.FileInfo = My.Computer.FileSystem.GetFileInfo("c:\Documents And Settings\" & lblUsername.Text & "\local settings\History\" & ListItem.ToString)
            'My.Computer.FileSystem.WriteAllText(DumpPath & "History.rtf", ListItem.ToString & " - Created:" & fileDetail.CreationTime & " - Last Accessed" & fileDetail.LastAccessTime & vbNewLine, True)
            My.Computer.FileSystem.WriteAllText(DumpPath & "History.rtf", ListItem.ToString & vbNewLine, True)
        Next

        Me.Close()
    End Sub
End Class
ChrisVoiseyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
Try changing this

My.Computer.FileSystem.GetFiles("c:\Documents And Settings\" & lblUsername.Text & "\local settings\History\", FileIO.SearchOption.SearchTopLevelOnly)

to this

My.Computer.FileSystem.GetFiles("c:\Documents And Settings\" & lblUsername.Text & "\local settings\History\", "*.*")
0
CodeCruiserCommented:
This would return you all the files from all the subfolders within the history folder.
0
ChrisVoiseyAuthor Commented:
Worth a try but does not seem to be working.
"Conversion from string "*.*" to type integer is not valid...

0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

CodeCruiserCommented:
Oh you are using the my object. Try this instead

Directory.GetFiles("path", "*.*")

http://msdn.microsoft.com/en-us/library/wz42302f.aspx
0
ChrisVoiseyAuthor Commented:
That is an improvement...

However the contents of the History folder are not as I expected.
All that is listed is some *.dat files, not the actual history as it appears when using windows explorer.

How do we get that data?

Thank you very much for your help!
0
CodeCruiserCommented:
I think that Windows uses a Shell Extension to show these files. Same as it uses to show the GAC folder(its not a HDD folder).
0
ChrisVoiseyAuthor Commented:
You are correct..

There still must be a way to collect that data, any thoughts?
0
CodeCruiserCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ChrisVoiseyAuthor Commented:
Perfect!
Thank you very much!
0
CodeCruiserCommented:
Glad to help :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.