Results 1 to 7 of 7

Thread: [RESOLVED] Delete IE History? Google Chrome? Firefox?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Resolved [RESOLVED] Delete IE History? Google Chrome? Firefox?

    well can I delete these browsers history in VB, what about cache?

  2. #2
    Fanatic Member stlaural's Avatar
    Join Date
    Sep 2007
    Location
    Quebec, Canada
    Posts
    683

    Re: Delete IE History? Google Chrome? Firefox?

    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.
    Alex
    .NET developer
    "No. Not even in the face of Armageddon. Never compromise." (Walter Kovacs/Rorschach)

    Things to consider before posting.
    Don't forget to rate the posts if they helped and mark thread as resolved when they are.


    .Net Regex Syntax (Scripting) | .Net Regex Language Element | .Net Regex Class | DateTime format | Framework 4.0: what's new
    My fresh new blog : writingthecode, even if I don't post much.

    System: Intel i7 920, Kingston SSDNow V100 64gig, HDD WD Caviar Black 1TB, External WD "My Book" 500GB, XFX Radeon 4890 XT 1GB, 12 GBs Tri-Channel RAM, 1x27" and 1x23" LCDs, Windows 10 x64, ]VS2015, Framework 3.5 and 4.0

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Re: Delete IE History? Google Chrome? Firefox?

    i thought that there was a process that you just have to start...

  4. #4
    Fanatic Member stlaural's Avatar
    Join Date
    Sep 2007
    Location
    Quebec, Canada
    Posts
    683

    Re: Delete IE History? Google Chrome? Firefox?

    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.
    Alex
    .NET developer
    "No. Not even in the face of Armageddon. Never compromise." (Walter Kovacs/Rorschach)

    Things to consider before posting.
    Don't forget to rate the posts if they helped and mark thread as resolved when they are.


    .Net Regex Syntax (Scripting) | .Net Regex Language Element | .Net Regex Class | DateTime format | Framework 4.0: what's new
    My fresh new blog : writingthecode, even if I don't post much.

    System: Intel i7 920, Kingston SSDNow V100 64gig, HDD WD Caviar Black 1TB, External WD "My Book" 500GB, XFX Radeon 4890 XT 1GB, 12 GBs Tri-Channel RAM, 1x27" and 1x23" LCDs, Windows 10 x64, ]VS2015, Framework 3.5 and 4.0

  5. #5
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Delete IE History? Google Chrome? Firefox?

    Quote Originally Posted by reconrey View Post
    i thought that there was a process that you just have to start...
    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.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Re: Delete IE History? Google Chrome? Firefox?

    i figured it out guys--I used:

    vb Code:
    1. Sub Clear_Temp_Files()
    2.         Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 ")
    3.     End Sub
    4.  
    5.  
    6.     Sub Clear_Cookies()
    7.         Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2")
    8.     End Sub
    9.  
    10.  
    11.  
    12.     Sub Clear_History()
    13.         Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1")
    14.     End Sub
    15.  
    16.  
    17.  
    18.     Sub Clear_Form_Data()
    19.         Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16")
    20.     End Sub
    21.  
    22.  
    23.  
    24.     Sub Clear_Saved_Passwords()
    25.         Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32")
    26.     End Sub
    27.  
    28.  
    29.  
    30.     Sub Clear_All()
    31.         Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255")
    32.     End Sub

  7. #7
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: [RESOLVED] Delete IE History? Google Chrome? Firefox?

    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.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width