I wrote some code that simple cleans out a users temporary internet cache, however it does not want to list out on the console all the files in the directory. However if i change the directory to non hidden directory it works fine. any ideas? obviously username is in place of a username i would type in during testing.
Dim DSPath As String = "C:\Documents and settings\username\local settings\temporary internet files"
'Dim DSPath As String = "C:\Documents and Settings\" & GetUsername(My.User.Name) & "\Local Settings\Temporary Internet Files"
Dim DS As New System.IO.DirectoryInfo(DSPath)
Dim FI As System.IO.FileInfo
For Each FI In DS.GetFiles
Me.TBStatus.Text = "Cleaning Cookies: " & FI.FullName