clear Internet Explorer's history using C#

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

I am writing a util (windows forms) to allow a user to
clear their internet explorer's history using C#.

Microsoft's Internet Explorer does not appear to have
this option, so I manually have to delete these files
from the following directory: \Documents and
Settings\username\Local Settings\History\Today\*.*. I
would like to be able to delete these files in the Today
directory programmatically, using C#, however I cannot
seem to find any resources on doing this.

string path = "C:\Documents and Settings\username\Local
Settings\History\History.IE5";
FileInfo fi = new FileInfo(path);
ect...

I cannot get access to the History.IE5 file, and I cannot
seem to find any other means to delete the files within
the Today folder. I have tried other methods that I have
not displayed here, and no luck.

Any help would be appreciated. Thanks.

Alex
 
Back
Top