View Single Post
Old 12-24-2008, 15:09   #8 (permalink)
kasrawiz
No Life Poster
 
kasrawiz's Avatar
 
Join Date: Aug 2006
Location: Edmonton AB
Posts: 968
Member: 340564
Status: Offline
Sonork: 1591034
Thanks Meter: 529
Here's what you can do to automatically wipe out the index.dat files on a Windows 2000 Professional or a Windows XP Professional machine during each shutdown. This automatic method does not work on Windows XP Home edition.

Instructions for Windows XP Home users:

Windows XP Home users can delete the files manually. Follow the instructions below to create the IndexDat.cmd file. Save the edited IndexDat.cmd file to your hard drive at the root of C:\. Reboot your PC and when your PC is just starting to bootup, you can keep tapping F8 until you see the Windows Advanced Options Menu. Use your arrow keys to choose "Safe Mode with Command Prompt" and press Enter. At the C:\ prompt type "C:\indexdat.cmd" without the quotes and press enter to run the IndexDat.cmd file. After the script has run, press Ctrl->Alt->Delete on your keyboard and select Shut Down->Restart to restart your PC.

Instructions for Windows 2000/XP Professional users:

Index.dat files keep a record of every website you have ever visited and the one in the Content.ie5 folder just keeps growing and growing. It's OK to delete the Index.dat files as windows will created new empty files after rebooting.

Open Notepad and type the following:

Del "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\UserData\index.dat"
Del "C:\Documents and Settings\Administrator\Cookies\index.dat"
Del "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\index.dat"
Del "C:\Documents and Settings\Administrator\UserData\index.dat"
Del "C:\Documents and Settings\Default User\Cookies\index.dat"
Del "C:\Documents and Settings\Default User\Local Settings\Temporary Internet Files\Content.IE5\index.dat"
Del "C:\Documents and Settings\Local Service\Cookies\index.dat"



In this example, the username is Administrator. Replace Administrator with your username. You will need to add any additional users to the script.
Do not confuse All Users, Default User, LocalService or NetworkService as being users.
In notepad Save the file with the file name "IndexDat.cmd" (with the quotes). Your file should now be named IndexDat.cmd. It should not be named IndexDat.cmd.txt.

Copy the IndexDat.cmd file to the following folder:

C:\Winnt\System32\GroupPolicy\Machine\Scripts\Shut down
or
C:\Windows\System32\GroupPolicy\Machine\Scripts\Sh utdown

depending on where you operating system resides.

So IndexDat.cmd should now be in the Shutdown folder.

Now go to Start & Run and type in gpedit.msc and click OK. Open up Computer Configuration->Windows Settings->Scripts (Startup/Shutdown) and double click Shutdown. Click the Add button and browse to the IndexDat.cmd file in the Shutdown folder. Highlight the file, click Open and OK twice. Every time you shut your computer down, it will wipe out the index.dat files.

if you don't want to write all these in notepad already typed here just download and Edit with notepad the attached file
Attached Files
File Type: zip IndexDat.zip.zip (294 Bytes, 14 views)
  Reply With Quote
 
Page generated in 0.08306 seconds with 8 queries