Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have created a .bat that uses deltree to delete my temp folder, recent files, history folder, and temp internet files (content.ie)
deltree /y c:\windows\temp\*.*
(and the same for the other folders)It works, sort of. If I run the program while Internet Explorer is closed, it will delete the temp internet files - I can check that with Windows explorer. However, when I open Internet Explorer(6.0) again, it recovers the temp internet files, and they will show up again in Windows explorer. I have so far assumed this was due to the index.bat file, but I am not sure. If I use the internet options in Internet Explorer to delete files they do not return when I restart IE, so why would they when I delete the files manually? What does pushing the delete files button do that just deleting the folder does not? I know it doesn't delete the index.dat....
Help would be appreciated.

I've done the same thing WildDuck.
You've really sparked my interest. I'm not too sure, but I know if you re-start your
machine in Dos and run your batch file,
you can delete those .dat files.
Let me know if they reappear again.
Just a small note ---- maybe delete the contents of the Cookies folder in Windows too

unfortunately it is early where I am and I am at work (on a different computer) so I cannot add the cookies folder right now. I am curious to see if they come back too.
I know you can delete the index.dat with DOS, and "maybe" that will stop this recovery issue, but if the IE push button "delete files" option works without recovering the files the next time IE is started I'm thinking that it must be something aside from the index.dat that causes the recovery (pushing the button doesn't delete index.dat anymore than trying to delete it manually - it still exists in either scenario and the recovery doesn't occur with the push button method).
What does pushing this button actually make happen? How do I find out?
Thanks for the reply sr2owens

If you just want to delete the index.dat try this:
This works in IE5.5 and IE6.0.
Without using Spider or Windows Washer you don't have to go to DOS to delete index.dat. Just go to C:\Windows\Temporary Internet Files\Content.IE5(or .IE6) and delete the Content.IE folder. It will recreate itself on the next bootup.
First go to DOS and at the prompt type in the following commands:
CD\WINDOWS\TEMPOR~1\CONTENT.IE5(or.IE6)
EDIT /75 INDEX.DATYou will be brought to a blue screen with a bunch of binary.
Press and hold the [Page Down] button until you start seeing lists of URLs. These are the sites you have visited. When your done looking go to File>Exit. If you don't have mouse support in DOS then use the [ALT] and arrow keys.
Now delete the Content.IE folder and repeat the above and look.
PS-To delete this out of IE6.0 you have to reboot and then you can delete it from Recycle Bin after the new Content.IE folder has been recreated.
For all the info on index.dat go to:
www.fxxxmicrosoft.com/content/ms-hidden-files.shtml. Replace the x"s after the f with the appropriate letters. This guy must really hate MS.

Something you might want to consider is creating a ram drive. You'll have to look up the exact syntax but you start by loading ramdrive.sys. This creats a drive using RAM the amount you designate in the config.sys line for ramdrive. In the autoexec.bat you set temp to that drive. You go into IE and set the temp files to that drive. Everytime you shutdown all of those files disappear forever. No batch files to run. No more maintenance. Of course you would not want to do this if you only have 32meg of ram in the system. But for those with 75 or more its the only way to go.

Perhaps the path within your bat file is not the correct path.
Go to IE, Tools, Internet Options, Click on the TIF Settings button and then the View files button.
See if the path matches your bat file.

Thank you for all responses
- for those who suggested path troubles: I have double checked every path and they are pointing to the correct places
-for the RAM suggestion - I like it, but I am a RAM hog....here what I have done....
1. I added cookies to the list of folders to delete with deltree /y C:\windows\cookies\*.*
They were deleted (as seen in windows explorer), but were recreated (along with the oher temp internet files)when I ran IE and tools>internet options>settings>veiw files. They just show back up and are visable again in windows explorer.2. So I went for the big guns and I ran delindex.bat ( a common topic on this forum and a great little program)to delete the index.dat files and the problem was solved....the files did not come back.
I still maintain that if windows can delete these records with a push button in IE and prevent them from being recreated then it can be done- without having to boot to DOS
and without deleting the index.dat
(deleting the index.dt is a good thing to do, but the idea was to make this as much a one-click-on-my-desktop operation that deletes the temp internet files to the same degree that IE does with it's push button)How do I find out what commands run when I push that button in IE to delete files and the one to delete cookies? Pushing these buttons does more then just delete the files. It keeps them from being recreated.
Thanks again for the responses...

Hey WildDuck, I really don't have an answer
for you about that button, but I was wondering what you think about this.
I removed the attributes from the system.dat
and the user.dat and then I was able to
delete them. And thats the Registry.
There must be something heavy going on
between Internet Explorer & Windows to deny
access to that file.You might have to talk to
a Windows programmer to find out.
Something weird going on in my computer.
My daughter had to have Kazza. When I found
out about how bad it was I started removing
spyware from the Registry. Now when I run my batch file, my Temp Internet folder is getting deleted and not re-created and now its in the Local Settings folder.
I really liked the responses & ideas from the other people.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |