Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete an IE history item
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00809735
Message ID:
00810078
Views:
24
Thats what I thought, but the history files are in some sort of format I dont know about.
I started a little thing below;
    Friend Function RemoveFromHistory(ByVal strItem As String)
        Dim dirHistory As String = GetFolderPath(SpecialFolder.History)
        Dim fso As File ' not case sensitive
        If File.Exists(dirHistory & "\today\" & strItem) Then
            File.Delete(dirHistory & "\today\" & strItem)
        End If
    End Function
But, this failed to work. The directory 'today' is not found... And when traveling there in explorer to say 'C:\Documents and Settings\Usr\Local Settings\History' you see that there are folders for today,each weekday, and then weeklong histories from 2 to 12 weeks ago on my PC. When you click on one of those folders you see that you are now in virtual land because you lose the path in the address bar (if you, like I had it on). These folders are actually files [GUID].ini and [GUID].dat I believe. So I thought that there must be a method in the framework to remove a history item. To date I have been unable to locate one. IE can do it on a per item so I know it can be done.

Any ideas?,

>Hi Joe,
>
>You should be able to use the Environment.SpecialFolder enumeration to initialize a DirectoryInfo object with the "History" folder, and recursively delete the files in all subfolders (the GetDirectories and GetFiles methods).
>
>>How to programatically delete a specific IE item from the history? This is NOT a web program this is a window app.
>>
>>Thanks in advance,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Reply
Map
View

Click here to load this message in the networking platform