Re: how to clear content of DAT-files?
From: Mats (matsojatswissonlinedotch)
From: "Mats" <matsojatswissonlinedotch> Date: Mon, 17 Mar 2003 17:41:46 +0100
"ronwer" <firstname.lastname@example.org> wrote in message
> I would like to know if it is possible to clear the contents of the
> DAT-files that moniter ones use of internet. I tried to delete the
> of such files and save the file, but XP refuses to do so. Nor is it
> to delete such files, which has nothing to do with it's attributes, there
> no visible protection.
The "index.dat" is a system file (why?) and is protected by Windows.
And there are "index.dat" in several locations!!
You can probably buy programs that gets rid of this one or empties the file.
However the cheapest is to write a script as below:
cd C:\Documents and Settings\user name
rd /s/q locals~1\tempor~1
rd /s/q locals~1\temp
rd /s/q temp
rd /s/q locals~1\history
rd /s/q cookies
You have to write your user name in the first line.
This script deletes all temporary directories including "index.dat" and
Windows will recreate the files/directories.
Name file as "clean.cmd".
Now goto start menu and click Run...
In the dropdown box write "gpedit.msc" and click OK.
In computer config go to Windows settings, Scripts (startup/shutdown)
Chose Shutdown and click properties, now add the file "clean.cmd"
"clean.cmd" will execute when you shut down your comp and delete the
folders, files and cookies.
Windows does not protect the files during shutdown!
This is valid for XP Pro at least, dont know for Home