well can I delete these browsers history in VB, what about cache?
Printable View
well can I delete these browsers history in VB, what about cache?
My guess is you'd have to read the documentation of each individual browser to know where exactly they save their data and then delete it.
i thought that there was a process that you just have to start...
We'll I'm no expert, but as all the browsers are created by different groups/companies I think that they all store their history in different locations. I don't know any existing method in VB that would delete all those at once. I guess that you would need to find those location and then create your own method to delete it.
Of course not. If you just want an already made application, go with something like CCleaner.
Otherwise, you'll need to research the different methods each browser uses to store that information.
Luckily, the .NET Framework has an easy method to grab IE's info. Google it and you'll get what you need there.
FF stores it's info in a folder and a sql database I think. I think Chrome does it similarly. But as mentioned before, you'll need to research each browser.
Afterwards, you can use methods within the System.IO namespace to grab and delete items.
i figured it out guys--I used:
vb Code:
Sub Clear_Temp_Files() Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 ") End Sub Sub Clear_Cookies() Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2") End Sub Sub Clear_History() Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1") End Sub Sub Clear_Form_Data() Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16") End Sub Sub Clear_Saved_Passwords() Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32") End Sub Sub Clear_All() Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255") End Sub
There's so many things wrong with that. And by so many, I mean two that I can think of. First, as far as I can tell, that only works with IE. And, like I mentioned, there are built in methods to do that with IE.
Second, Shell is an outdated method and was replaced by Process.Start.