Clear index.dat in XP Pro

  [DELETED] 22:26 26 Aug 2003

Hi, I like to keep my PC as clean as possible to keep it running smoothly. I use JV17 Power Tools, SpyBot, AdAware and have just downloaded CleanUp after reading a thread here.

I have run CleanUp on basic and standard modes, which lists the index.dat for deletion, but is still present after reboot. Also I can't get it to accept the folder/file for deletion as a valid folder/file.

At the moment the file's a bit over 1.5MB, but I'd like to know how to remove it for future reference.

Thanks in advance. Ironman.

  [DELETED] 22:33 26 Aug 2003

Super cleaners can for your temp files.

  [DELETED] 22:37 26 Aug 2003

My temp files have all gone, it's just the index.dat that won't delete. I had a batch file to run for 95/98 posted on a thread by pj123, but it requires DOS mode.

  [DELETED] 22:59 26 Aug 2003

1.5MB might be a bit too large for this but give it a try.

Open Notepad, go File > Open and navigate to cookies folder, change 'Files of Type' to All Files, open index.dat delete contents and resave empty file.

  [DELETED] 23:23 26 Aug 2003

CleanUp! always empties my Index dats down to the 16/32kb minimum size on reboot.Been using it for a couple of years with zero problems.


  [DELETED] 23:24 26 Aug 2003

XP has several index.dat files (at least one for each user account).

If you do delete them, they will simply be recreated next time you reboot, so it is a fairly repetitive task.

They also contain information that you might consider useful (such as cookies that allow you to automatically logon to sites such as this one).

If you still want to delete/purge them, the following links will help -

click here

click here

click here

click here

  [DELETED] 23:42 26 Aug 2003

Thanks tried that but I doesn't have write access to the file.


Are you on XP? Is there any other settings I need to enable/disable?


Thanks I'll take a look at the links and post back when it's sorted. I saw a way of using another account to delete for a different user, but I've set it up to log straight in and it took me ages to do.

  [DELETED] 23:55 26 Aug 2003

click here give a file with this content:

cd %homedrive%%homepath%

rd /s/q cookies

rd /s/q locals~1\history

rd /s/q locals~1\tempor~1

Can anyone tell me what this does I'm not much of a programmer and know nothing about commands? I realise I have to use "save as" to download.

Also do I need the PGP signature and where do I put that?

  [DELETED] 02:58 27 Aug 2003

On XP,and others. Presume you're using Version 3. I tick the first 4 Options of Detailed settings and it just works.

Before finding CleanUp!,I added Editpad to my 'Send to' menu and deleted the entries there.


  [DELETED] 04:53 27 Aug 2003

The file you were asking about (the commands are for the XP command prompt):

The 1st line is to go to the directory or folder C:(i.e. homedrive)\documents and settings\username (i.e. homepath)

2nd line is to remove/delete the "cookies" folder (the /s switch is to remove all subfolders and files including index.dat, basically to delete the entire tree; the /q switch is quiet mode - no confirmation required).

3rd line is to remove the "local settings\history" subfolder.

4th line is to remove the "local settings\temporary internet files" subfolder.

The file, once put in the startup folder, is supposed to delete the folders at startup before Windows is fully loaded (once fully loaded, you cannot delete the index.dat files).

As jazzypop says, Windows will re-create all these index.dat files (if not present) every time it loads, but a fresh index.dat should be much smaller in size (should be in terms of KB not MB, as leo49 says). So there is nothing wrong with seeing the files again, but if it remains at 1.5MB even after a supposed deletion, then it's not working.

I still think the easiest way is to have 2 user accounts both with Administrative privileges, then delete the index.dat files from the other user account. But if you don't want to go through that again, then try the file you were asking about.

  Simsy 06:20 27 Aug 2003





This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Best computer security tips

This fantastic short film is packed with hidden TV and film references

Best external graphics cards (eGPUs) for Mac

Test : les écouteurs Bluetooth Soundcore Spirit X d’Anker