Computing.Net > Forums > Windows 95/98 > Clean all index.dat files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to get for your free account now!

Clean all index.dat files

Reply to Message Icon

Name: Eric
Date: February 14, 2002 at 10:33:44 Pacific
Comment:

I have been reading a few posts where people are trying to clean the cookies, temporary internet files, & history files including index.dat files. Here's a a batch script I wrote that will do everything in 2 or 3 minutes. This script is for Win 98 users.

Open notepad and paste the following into it and save it as c:\clean.bat

----Begin copy below this line
REM ******************************************
REM This section removes temp internet files, cookies & index.dax files
Echo Preparing to remove Index.dat and other junk files from your system!!
Echo.
Echo Removing History files from system, Please wait!
DELTREE /y c:\windows\history\*.* > NUL
Echo History files removed!
Echo Removing Temporary Internet Files from system, Please wait!
DELTREE /y c:\windows\tempor~1\*.* > NUL
DELTREE /y c:\windows\temp\*.* > NUL
Echo Temporary Internet Files removed!
Echo Removing Cookie files from system, Please wait!
DELTREE /y c:\windows\cookies\*.* > NUL
Echo Cookies are removed from system!
Echo Removing other junk files from system, Please wait!
DELTREE /y c:\windows\applic~1\micros~1\office\recent\*.* > NUL
DELTREE /y c:\windows\ShellIconCache
DELTREE /y c:\windows\recent\*.* > NUL
if exist del c:\windows\ff*.tmp
if exist del c:\windows\system\advert.dll
Echo Operation Completed!
REM *****************************************
Echo.
Echo.
Echo Reboot you computer now!!!!!!

Boot to DOS using F8 or a boot disk, besure you are at C:\>
type clean & hit enter

Easy as that!!!!!!!!


Report Offensive Message For Removal

Sponsored Link
Ads by Google

Response Number 1
Name: Derek
Date: February 14, 2002 at 13:00:42 Pacific
Reply:

A script such as that posted can obviously be useful but in the end it is always worth checking the steps to make sure you have happy with what is being deleted.

For example, in my case (and that of many others) the rebuild of Shelliconcache when you restart is to say the least "shaky". Some machines seem to require trickery in order to get that file to rebuild, or in some cases even re-appear. I must admit I have some difficulty understanding why that feel needs deleting at all.

So, you choose the lines you want and don't incorporate any that would cause you promblems. Nice effort though, particularly useful for those who's DOS is a little rusty or non-existent.

One question (excuse my ignorance), what does the > NUL do?


Report Offensive Follow Up For Removal

Response Number 2
Name: Bryco
Date: February 14, 2002 at 14:29:30 Pacific
Reply:

I would also recommend not including the deletion of Shelliconcache because it takes too much effort to rebuild it.

I have been playing around with the Shelliconcache a lot lately and now have it just like I want it.

A better fix for the Shelliconcache is to locate it and take a look at the size of it(mine is at 1,334kb) .
The default Max size is 500kb so everytime I startup and open any folder with a non-system icon in it, it has to build the icons making everything slower than it needs to be.

Increasing the Max Cached Icons size within the registry to a greater amount than the file size will make it so all of the icons are stored.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer

In the right hand pane create a new string value named "Max Cached Icons" without the quotes by right clicking in the right hand pane and selecting New. Then right click on Max Cached Icons to modify it to a value of 2048 (for mine).
Optional values:
1024
4096
8192
If mine grows more than 2048 then I will increase it again.

After changing my settings I opened every file and folder I could find that contained icons. They are stored now and all folders open as fast as they are going to.

The Shelliconcache is to icons like the TIF is to IE.

Sometimes the Shelliconcache can be become corrupted; in that case it is good to delete it. I have done that to find that I had to reboot twice to get it to rebuild.

What I found later is that it was not corrupt; it was just too small to handle the amount of icons I have.

The best part of the .bat is the deltree TIF. Everything else I like to manage manually.

Thanks for the input,
Bryan


Report Offensive Follow Up For Removal

Response Number 3
Name: Renaissance Man
Date: February 14, 2002 at 15:40:47 Pacific
Reply:

> NUL redirects any message that would otherwise appear on the screen to a "nul [non-existent] file," i.e., it goes nowhere. Some people like to see what's going on; others like a program to just do its job without a whole lot of screen clutter.


Report Offensive Follow Up For Removal

Response Number 4
Name: sekirt
Date: February 15, 2002 at 03:25:37 Pacific
Reply:

I was told (and it is supposed to be in the MS KB) that if you create user profiles, there are more INDEX.DAT's.

I don't have any profiles and the above BAT would work for me - but many people do.

I would also alter the code for myself, rather than mass delete everything included.
But nice effort - should help many.


Report Offensive Follow Up For Removal

Response Number 5
Name: pgriffet
Date: February 15, 2002 at 12:44:25 Pacific
Reply:

Hi Bryco, thank you for the tip about ShellIconCache. I had read something about it in axcel216 tips
http://members.aol.com/axcel216/ , probably the best tips list for all Windows versions. There is a little difference between you and Axcel's explanation, you speak about size and he speaks about number of icons.
Here is MSKb point of view :
http://support.microsoft.com/support/kb/articles/q132/6/68.asp
Sorry for the basic English.
Pierre.


Report Offensive Follow Up For Removal

Related Posts

See More



Response Number 6
Name: Bryco
Date: February 15, 2002 at 14:05:52 Pacific
Reply:

pgriffet, That is very interesting as the MS article does not state it but I suspect it too is referring to amounts of icons versus the file size.

"If the icons are still incorrect, delete the ShellIconCache file. The Max Cached Icons value data range is between 100 and 4094. The default value is 500."

I now wonder if it is possible to determine how many icons are on a particular PC.
On my work PC (where I am right now) it alledgedly contains 72 icons using Find *.ico with nothing hidden but I know for certain that there are many more.

I will have to look into to this more now. Thanks,
Bryan


Report Offensive Follow Up For Removal

Response Number 7
Name: Renaissance Man
Date: February 19, 2002 at 11:06:04 Pacific
Reply:

http://www.computing.net/windowsme/wwwboard/forum/19918.html


Report Offensive Follow Up For Removal

Response Number 8
Name: Bryco
Date: February 20, 2002 at 11:21:08 Pacific
Reply:

Renaissance Man, Thanks for the excellent post it is similar to Eric's posting on this thread.

You should be proud of your efforts, but I do not see in there where it will tell me how many icons are on my PC.

Did I miss it or is there another reason you have directed me there?

Thanks in advance,
Bryan


Report Offensive Follow Up For Removal

Response Number 9
Name: Renaissance Man
Date: February 20, 2002 at 12:06:00 Pacific
Reply:

Original post:

I have been reading a few posts where people are trying to clean the cookies, temporary internet files, & history files including index.dat files.

Sorry for the confusion. My post was in response to the original post, not yours.


Report Offensive Follow Up For Removal

Response Number 10
Name: Norman
Date: May 2, 2002 at 21:12:59 Pacific
Reply:

Regarding the NUL...

If you feel safe about your commands in the autoexec.bat file, you can also use the handy and not so common command CTTY.

The CTTY redirects the terminal device (the monitor).

The following example starts by redirecting the display so you don't see the details. then it performs the deltree commands, and finally redirects the display back to the CON (or console/monitor)

CTTY NUL
DELTREE /y c:\windows\tempor~1
DELTREE /y c:\windows\temp
CTTY CON


Report Offensive Follow Up For Removal
Reply to Message Icon






Post Locked

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


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Clean all index.dat files

Index.dat files www.computing.net/answers/windows-95/indexdat-files/44762.html

** Delete INDEX.DAT Files at Startup! www.computing.net/answers/windows-95/-delete-indexdat-files-at-startup/111809.html

delete cookies index.dat files www.computing.net/answers/windows-95/delete-cookies-indexdat-files/170091.html