1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Cookie Removal Script

Discussion in 'General Internet' started by Rockit, 2005/03/12.

Thread Status:
Not open for further replies.
  1. 2005/03/12
    Rockit

    Rockit Inactive Thread Starter

    Joined:
    2003/03/23
    Messages:
    464
    Likes Received:
    0
    Hey,
    I had this tiny little script file that I would tell windows to run on system shutdown that would delete all index.dat files auto. Looks like I've lost it and would like to get it back.

    Anybody know where I can find it on the web? I've searched and am coming up empty handed.

    Thanks
    Rockit
     
  2. 2005/03/12
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    I know of no script that will do that in XP.

    CrapCleaner can do that via a Registry entry in the RunOnce Key and a Reboot.

    One caveat with CC, you must leave your TIF's in the Windows default location. CC will not find them otherwise.
     

  3. to hide this advert.

  4. 2005/03/12
    Bmoore1129

    Bmoore1129 Geek Member

    Joined:
    2002/06/11
    Messages:
    1,675
    Likes Received:
    3
    Moveonboot is what I use to get rid of files that are in use while in windows. I don't know if it will work for you as it is not automated. It does add a context menu item for doing it manually.

    Also, if you use the Microsoft Antispyware Beta, in Advanced Tools>Tracks eraser.
     
    Last edited: 2005/03/12
  5. 2005/03/12
    Rockit

    Rockit Inactive Thread Starter

    Joined:
    2003/03/23
    Messages:
    464
    Likes Received:
    0
    Found it .. it's called "exp.cmd"

    You go into the group policy editor and set it up to run on log off..

    Cheers
    Rockit
     
    Last edited: 2005/03/13
  6. 2005/03/12
    Welshjim

    Welshjim Inactive

    Joined:
    2002/01/07
    Messages:
    5,643
    Likes Received:
    0
    Last edited: 2005/03/12
  7. 2005/03/12
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    I have a command file I made that will delete the folders and index.dat in XP while XP is running, no need for a reboot. It kills explorer, afterwhich the folders and files can be deleted and automatically get recreated by windows when explorer starts up again. Copy+Paste the following into notepad and save as cleanup.cmd (whatever_you_want,cmd).
    Code:
    taskkill /f /im explorer.exe
    RD /S/q  "%UserProfile%\Local Settings\Temporary Internet Files "
    RD /S/q  "%UserProfile%\Cookies "
    RD /S/q  "%UserProfile%\Local Settings\History "
    RD /S/q  "%UserProfile%\Recent "
    RD /S/q   "%UserProfile%\Local Settings\Temp\ "
    MD  "%UserProfile%\Local Settings\Temp\ "
    pause
    start explorer.exe
    fyi, the pause line can be removed, I use it so I can see any error messages that could result from another running process that interferes w/ the cmds. If that happens, run the cmd file back to back and after the 2nd or 3rd time any interfering process will lose and the cmd will do it's job.
     
  8. 2005/03/12
    Welshjim

    Welshjim Inactive

    Joined:
    2002/01/07
    Messages:
    5,643
    Likes Received:
    0
    Rockit--I am sure you are aware that TonyT's suggestion will delete a lot more than index.dat. (BTW--I am not sure that any program deletes--or should delete--index.dat folders/files. All you want is to delete the content of these files. New or empty index.dat files will still be present (size 32KB) on deletion of the contents.)
    P.S. What does that exp.cmd file look like?
     
    Last edited: 2005/03/12
  9. 2005/03/13
    Rockit

    Rockit Inactive Thread Starter

    Joined:
    2003/03/23
    Messages:
    464
    Likes Received:
    0
    Jim,

    Copy and paste in notepad then save as exp.cmd

    Go to group policy editor then select logoff script and direct to file.

    Surfer say's it won't work though. I really don't have time to mess with it right now but when I do I'll keep ya posted.

    Tony .. will your's run as a script upon system shutdown?

    Thanks
    Rockit
     
  10. 2005/03/13
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Yes, the cmd file WILL delete the index.dat files. It is perfectly OK to delete them as they can grow very large in size if left alone. Plus, the index.dat is a running record of every site you have ever visited, along with other data too. Not that I care about someone seeing where I've surfed, but if remove the dir then the index.dats get removed as well. When explorer.exe re-loads, brand new dirs and brand new index.dat files get created by windows, except windows will NOT recreate on it's own a Temp dir, thus the mkdir line in my cmd file.
     
  11. 2005/03/13
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    No, because as you can see, it kills explorer.exe and then restarts explorer.exe, which you would not want to do at shutdown. You can use it anytime once booted.

    To run mine at shutdown use gpedit and just these lines:

    Code:
    RD /S/q  "%UserProfile%\Local Settings\Temporary Internet Files "
    RD /S/q  "%UserProfile%\Cookies "
    RD /S/q  "%UserProfile%\Local Settings\History "
    RD /S/q  "%UserProfile%\Recent "
    RD /S/q   "%UserProfile%\Local Settings\Temp\ "
    MD  "%UserProfile%\Local Settings\Temp\ "
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.