How to delete index.dat

Discussion in 'Windows Desktop Systems' started by Perris Calderon, Mar 15, 2003.

  1. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    I just found this, and I know some of you have issues with this file;

    The INDEX.DAT file keeps a record of all the web sites you have visited.
    Normally you can't simply delete this file since it is protected by the operating system.
    However, there is a way:

    Close all running applications
    Open a command window (CMD.EXE)
    Go to to C:\Documents and Settings\username\Local Settings\Temporary Internet Files\Content.IE5 (where username is the replaced by your current login name)
    Start the Task Manager (Ctrl-Shift-Esc)
    Click on the Processes tab
    Select EXPLORER.EXE and click on End Process
    The screen will be blank except for the command window
    Delete the INDEX.DAT file
    Go back to the Task Manager
    Do File / Run / Explorer and the desktop will be back
    With a Batch File

    Since it would be cumbersome to manually change directories each time,
    it would be very simple to create a two line batch file to do this automatically.
    For the example it will be the C:\index.bat file

    CD C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files\Content.IE5
    Del index.dat

    Open up a CMD window to the C:\ directory
    Start the Task Manager (Ctrl-Shift-Esc)
    Click on the Processes tab
    Select EXPLORER.EXE and click on End Process
    Run INDEX.BAT
    Go back to the Task Manager
    Do File / Run / Explorer and the desktop will be back
    Once you learn how do this, it only takes about 30 seconds to delete the file.
     
  2. Enyo

    Enyo Moderator

    Messages:
    1,338
    Dont do it manually if you can help it, there are a mass of index.dat files around the OS so you will want to get a hand.

    Take a look at "Spider"

    http://www.webattack.com/get/spider.shtml

    Also killing explorer may not unlock the file in all cases, some index.dat files become locked by other procesess.

    I highly rate spider for this task so give it a look :)
     
  3. funky dredd

    funky dredd Moderator

    Messages:
    2,346
    Location:
    Florida
    Spider is an awesome program! Highly recommended ;)