Internet Explorer

Create a Batch File to Delete IE7 Browser History and Temp Files

This article will be my last article that focuses on Deleting the Internet Explorer 7 (IE7) Temporary Files, Cookies, Browser History, etc.  In my previous 2 Articles, I talked about How-To Clear the Browser History files manually and via CMD line.  However, if you need help doing this via a Batch File, read on.  The below Step-by-Step Tutorial should be simple to follow.  I’ll be using a Windows Vista machine for the Tutorial and Screen Shots, but the process is pretty much the same for Windows XP and other Windows Operating Systems.

How to Create a Batch File to Delete IE7 Browser History and Temp Files

1.   Right Click on your Desktop and Click New, Text Document

Image of Creating a new Text Document in Windows Vista

You should now have a new Document on your Desktop that looks like this:

Create a Batch File to Delete IE7 Browser History and Temp Files

3.   Double Click the Document to open it.  Type or Paste the following text into the empty document

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

It should now look like this:

Create a Batch File to Delete IE7 Browser History and Temp Files

3a.   Click File, Save then Close the Document

Ok, now it’s time to convert the document into a Batch file.  It’s a simple process of changing the file extension to a .cmd file.

4.   Right Click on the Document and Click Rename

How-To Rename a file in Windows Vista :: groovyPost.com

5.   Delete the document name and Type ClearHistory.cmd (or whatever you want to call it)

Create a Batch File to Delete IE7 Browser History and Temp Files  After Rename – Create a Batch File to Delete IE7 Browser History and Temp Files

 

You’re Done!  To test it out, just Double Click the File, and you should see an Internet Explorer 7 box open telling you it’s Deleting Temporary Internet Files

Create a Batch File to Delete IE7 Browser History and Temp Files

If you’re REALLY paranoid, you can setup a Windows Task to run your new Batch file every 15 or 30 Minutes.  Personally, I only clear my Browsing History and Temp files to get rid of clutter on my Hard Drive.

 

30 Comments

30 Comments

  1. Tony

    September 27, 2008 at 12:23 pm

    This is awesome! Just created the batch file and my history is being nuked every 90 minutes! :)
    Just because i’m paranoid doesnt mean they aren’t out to get me!

  2. MrGroove

    October 17, 2008 at 9:30 pm

    @Tony

    Exactly! I’m glad you enjoyed the article!

  3. Nayeem

    October 21, 2008 at 10:17 pm

    Very usefull information…..

    regards,

    Nayeem N.S

  4. Sanket Sirotiya

    December 12, 2008 at 12:49 pm

    Thanks a Ton

  5. cherry

    December 27, 2008 at 7:14 pm

    oh no, this didn’t work for me! maybe i’m doing something wrong? ):

  6. MrGroove

    December 27, 2008 at 10:11 pm

    @Cherry – What exactly is not working? Please post your issue / question in our Forum – https://www.groovypost.com/forum/

  7. Strider

    February 10, 2009 at 3:34 pm

    Error in Inetcpl.cpl
    Missing entry:ClearMyTracksByProcess

  8. MrGroove

    February 10, 2009 at 6:34 pm

    @Strider

    I take it that was your error message box that popped up when you ran the command.

    What version of windows are you running and what version of IE ?

  9. Saeed

    February 24, 2009 at 2:05 pm

    Thank you.

  10. samrat

    March 18, 2009 at 1:52 am

    even i am getting the same problem it is giving an error saying that

    Error in Inetcpl.cpl
    Missing entry:ClearMyTracksByProcess

    using windows Xp service pack – 2

  11. akhilesh

    October 9, 2009 at 3:09 am

    Learning very much from Mr. Groove.
    Thanks a Lot.

  12. Otac

    October 14, 2009 at 9:13 pm

    Great stuff and nice sharing. Its req for me.
    Thanks

  13. RobWPB

    November 24, 2009 at 5:36 am

    Thanks…

  14. aamena

    March 11, 2010 at 11:43 pm

    Thanks!

  15. LUIS

    April 4, 2010 at 7:48 pm

    This is a good way to create a batch file deleting IE history, cookies etc.. There is a lot easier way to do this not trying to sound like a complete douche-bag but there is a setting in the advance tab. Of IE properties there is an option that “empty your temp files when you exit IE” its a similar to it. every time you exit IE your browser history and cookies get automatically erased permanently. IE might start slow every time though thats the issue because it does not save anything really!

  16. lax

    April 12, 2010 at 4:23 am

    may be nice but it didn’t work here plz tell me whats it’s solution
    error is error in Intelcpl.cpl
    Missing entry Clear Mytracks by process

  17. SSG L

    May 3, 2010 at 9:02 am

    Thanks you, this was very helpful!

    We have Windows XP here at work and although it didn’t work when I saved it as a “.cmd” dile, it DID however work when I saved it as a “.bat” file…

    Nice work!

  18. larry

    September 12, 2010 at 6:45 pm

    uh oh i cant get it to save my txt file as a cmd file – when i click rename and type in xxx.cmd i end up with a file called xxx.cmd.txt, so then when i try and execute the file it just opens the file.

    thanks in advance for help with this. i am running windows XP serv pack 3.

    • MrGroove

      September 13, 2010 at 10:00 am

      Hi Larry,

      Simple fix. You need to first enable Windows XP to allow you to see file extensions. This way you can easily rename the file to xxx.cmd rather than xx.cmd.txt file which is what is happening to you now.

      I just created the Step-by-Step for you here that reviews How-To Configure XP to show file extensions. And just for reference, here is the same step-by-step for Windows 7.

      • Larry

        September 13, 2010 at 1:42 pm

        thanks for the prompt and extremely helpful advice, MrGroove, it works perfectly now.

  19. Tyger++

    September 14, 2010 at 2:49 am

    Thanks for the Share,did it 1 min,works perfectly.

  20. Gopi

    November 30, 2010 at 11:38 pm

    I am also facing same error.
    error is error in Intelcpl.cpl
    Missing entry Clear Mytracks by process

  21. Judhisthira Sahoo

    November 10, 2011 at 8:33 am

    Hi Steve,

    its really great and useful.

    But i need one more..how delete the temporary file for firefox.
    if you have the idea plz post that here or by my mail.

    thnaks,
    Judhisthira sahoo
    judhisahoo2009@gmail.com

  22. shahid niazi

    February 10, 2012 at 10:54 pm

    its a usefull thing but sir i need a batch file for deleting temp and %temp% files so plz give me batch file for the same

    plz reply

  23. YeaYeaYeas

    February 11, 2012 at 7:11 am

    been working perfectly for the past 9 months; even still after the mass reimage they performed on everyone’s pc here @ work. Your batch file STILL WORKS! Thank you thank you!

    ~Kia

  24. kember

    April 14, 2012 at 4:47 am

    This will work for win 7 4/2012, right?

  25. zeeshan

    October 31, 2018 at 9:23 am

    anyone that can help me Batch file that will Clean Cache and Cookies memory Automatically every 5 minutes in Firefox browser @MrGroove

Leave a Reply

Your email address will not be published.

 

To Top