Solved

batch file to delete internet explorer history and cookies

Posted on 2009-05-13
7
586 Views
Last Modified: 2012-05-06
I'm looking for a .bat file that I can run to delete cookies and history in IE.
0
Comment
Question by:JPERKS1985
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 16

Expert Comment

by:glenn_1984
ID: 24379869
0
 
LVL 4

Expert Comment

by:delyan_valchev
ID: 24379887
0
 
LVL 17

Expert Comment

by:houssam_ballout
ID: 24379897
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 50

Expert Comment

by:jcimarron
ID: 24380465
JPERKS1985--You will also want to clear the index.dat file from Content.IE5.  Even though you clear Temporary Internet Files and HIstory, the History still exists in that index.dat file.
This is not as easy to do using a batch file as are the others.
See http://www.onecomputerguy.com/ie_tips.htm and scroll to Misc|Clearing index.dat.
There are lots of software programs to do this.  I use System Security Suite.
http://www.igorshpak.net/
0
 
LVL 11

Expert Comment

by:NaturaTek
ID: 24383011
There are numerous app out there to help do the job. My favorite being free is CCleaner. www.ccleaner.com

If you want a batch file, copy the following into notepad and save it as cleanup.bat or anythingyouwant.bat
del /S /Q c:\WINDOWS\Temp
cd\\
cd C:\Documents and Settings\yourusernameHere\Local Settings\
rmdir /S/Q Temp
del /Q Temporary Internet Files
echo Deleting Files
echo Files Deleted
mkdir Temp
exit

Open in new window

0
 
LVL 4

Expert Comment

by:delyan_valchev
ID: 24383027
Again I would refer to http://www.howtogeek.com/howto/windows/clear-ie7-browsing-history-from-the-command-line/
Delete all IE history in one line:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Open in new window

0
 
LVL 11

Accepted Solution

by:
NaturaTek earned 500 total points
ID: 24383054
Let me correct this..you wanted history cleared for sure, I added this and the correct syntax for cd, I used one \ too many, The correct code is here below, enjoy. Close internet explorer when running batch to free any locked file.
del /S /Q c:\WINDOWS\Temp
cd \
cd C:\Documents and Settings\yourusernameHere\Local Settings\
rmdir /S/Q Temp
del /Q Temporary Internet Files
attrib -h -s history
del /q history
attrib +s +h history
echo Deleting Files
echo Files Deleted
mkdir Temp
exit

Open in new window

0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Event ID 1054 Userenv 2 92
convert Systemjs to Webpack 3 123
what should i learn? javascript or typescript? 3 61
How to create a registry Subkey containing the hostname 7 35
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question