Motorsports Fan

This is a helpware site

Addendum  for Windows XP, ME & 2000

Click Here to make Hardware Hell your homepage.
BIOS Tweaks
& Info

and Vendors

Hacking Your Password Hacking
Your Password

System Problem
Report Form



Link Exchange

Our Awards


Contact Us

Misc. Extras


AMIDiag Review  
AMIDiag Suite 2

Trish's Escape from Hardware Hell Computer Help



Deleting Temporary Files Painlessly Addendum  

I should have been a little more up front about my lack of knowledge with Windows ME and Windows 2000. I have never used these operating systems and do not plan on it in the near future. I currently use Windows 98 SE and quite content with the way that I have it dialed in. I didn't think about the WinME and Win2000 users that may read this article. DOS is not dead in these operating systems, but Microsoft does not make it accessible like their predecessors. From what I do know of these OS's, here are a few rather vague suggestions. Hopefully, you can apply them with your existing knowledge of your OS and how it handles bat files, and make it come together. If anyone works out a sure fire way and wants to share their knowledge, please let me know and I'll post it for others.

Also, we have a great thread going on the subject here. A lot is covered here that I keep seeing in the same emails again and again. Also, make sure and read down the page, as info is being added as it is shared.

Windows ME

You can download a patch at to unhide the Real DOS-Mode on Windows ME systems. All documentation is included on the page. 

Or check 

Windows Me doesn't process CONFIG.SYS or AUTOEXEC.BAT at startup. Instead, these files are maintained on the sly by Windows Me for backwards compatible with apps that expect to find them there. But any changes you make to either file will be overwritten each time the system boots. 

To specify or edit values in the *autoexec.bat* the user must edit the following registry value:


Within this key the user can modify pre-existing values that are currently defined in the autoexec.bat

Windows XP / 2000

Well, my big contribution is pretty feeble, but just in case it helps someone, I'll leave it below. Here's some info that probably want to check first. Mr. Bass has contributed some excellent cleanup dirt for Win XP, 2000, ME & 98. It is a document of it's own, so click here to view.

I know that 2000 uses autoexec.nt and config.nt located in the \Windows\system32 directory. However, I don't know anything about these, or if they actually will load on boot up. You may have to create a bat file that you run manually. Any info?

2000 does not have a deltree command, but it does have a rmdir command.

Rather than:    deltree /y

TRY:    rmdir /s

and you may want to try the del command.

Rather than:    deltree /y

TRY:    del /s/f/q

NOTE: I don't believe this will delete any subdirectories contained therein, only their files, but isn't that what counts?

If anyone has success with this, please let me know, so we can pass it along to others.

Here's a great discovery from reader, Nagib.

For Win2k pro

After a long search I found a way to run scripts during startup/shutdown using win2k script policies. This is what I've done:

1) Write a script in any language the OS supports. In my case a cmd script for example:

rem name this entire file privacy.cmd
rem IE and Windows
@echo off
rd /s/q c:\winnt\tempor~1
rd /s/q c:\winnt\cookies
rd /s/q c:\winnt\history
rd /s/q c:\winnt\temp
md c:\winnt\temp
cd c:\docume~1\yourusername
rd /s/q cookies
rd /s/q locals~1\history
rd /s/q recent
md recent
rd /s/q temp
md temp

2) Save the script in folder MyComputer/WINNT/system32/GroupPolicy/Machine/Scripts/Shutdown/

3) Run gpedit.exe which can be found in the directory MyComputer/WINNT/system32/

4) Go to ComputerConfiguration/WindowSettings/Scripts (Startup/Shutdown) and double click Shutdown . A popup window appears where you add your script.

Scripts can be run either for computer configuration during startup/shutdown or user configuration during logon/logoff.



Hugh E. Morrison shares his simple solution to getting rid of the index.dat files in Win ME. 

Boot your system from a bootable disk & go to the Windows directory.

cd windows
cd cookies
del . & answer yes
md index.dat
(You must make a dir called index.dat or Windows will just recreate the index.dat file.)
del . & answer yes
md index.dat
cd.. & you should be at C:\>Windows
del . & answer yes
md index.dat
del . & answer yes
md index.dat
Remove disk from drive A & reboot. No more index.dat files.

Here is a suggestion from reader, John. Thanks!

NT & W2K do not include the deltree command, but they can run deltree.  Copy the deltree from a Win9X into a directory on the NT system. Suggest creating a bin directory & including in path environment.

You could either add the batch file to the startup folder for all users or add as a reg entry under the run key.

Reader Michael Wood  offers his method for XP Cleanup of Temps.

XP Cleanup of Temps

I copied the Deltree file from an older machine, and then I have a batch file I run with the following commands:

rem Some information came from
rem Some I figured out myself.
rem - By Windows Setup - c:\windows\command\mscdex.exe /D:aspicd0 /M:12 /L:I
if exist c:\windows\smartdrv.exe c:\windows\smartdrv.exe 2048 16

Win 9x
c:\windows\command\DELTREE /y c:\windows\history\*.* > NUL
c:\windows\command\DELTREE /y c:\windows\tempor~1\*.* > NUL
c:\windows\command\DELTREE /y c:\windows\temp\*.* > NUL
rem DELTREE /y c:\windows\cookies\*.* > NUL
c:\windows\command\DELTREE /y c:\windows\applic~1\micros~1\office\recent\*.* > NUL
c:\windows\command\DELTREE /y c:\windows\ShellIconCache
if exist del c:\windows\ff*.tmp
if exist del c:\windows\*.tmp
if exist del c:\windows\system\advert.dll

win xp
Local Settings
c:\windows\command\DELTREE /y "C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files" > NUL
c:\windows\command\DELTREE /y "C:\Documents and Settings\LocalService\Local Settings\Temp\*.*" > NUL
c:\windows\command\DELTREE /y 'C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5" > NUL
:c:\windows\command\DELTREE /y "C:\WINDOWS\Internet Logs\*.*" > NUL

: User Settings
Update name to your user(s)
Copy this section for each user you have.
c:\windows\command\DELTREE /y "C:\Documents and Settings\Michael\Local Settings\History\*.*" > NUL
c:\windows\command\DELTREE /y "C:\Documents and Settings\Michael\Local Settings\Temp\*.*" > NUL
c:\windows\command\DELTREE /y "C:\Documents and Settings\Michael\Local Settings\Temporary Internet Files\*.*" > NUL
c:\windows\command\DELTREE /y "C:\Documents and Settings\Michael\NetHood\*.*" > NUL
c:\windows\command\DELTREE /y "C:\Documents and Settings\Michael\Recent\*.*" > NUL
: c:\windows\command\DELTREE /y "C:\Documents and Settings\Michael\Cookies\*.*" > NUL
rem pause

Back to Deleting Temporary Files Painlessly for Win9x


Click Here to bookmark Hardware Hell.




Temporary Files


| Apple / Macintosh | Articles | Build / Upgrade | Cdrom / Audio | Company Contacts | CPU / Chipsets | Discussion | Drivers | Download | Full Coverage Sites | Hard Drives | Help Forum | Jumper Settings | Memory | Miscellaneous | Modems / Serial Ports | Monitors / Graphics | Motherboard / Bios | Network | Operating Systems | Optimize / Tweak | Printers / Scanners | Portables | PS/2_OS/2 | Publication | SCSI | Weekly BIOS Tweaks | Trade A Link | My Misc. Links | Missing Children | Extras | Awards | Guestbook | Contact | Home |

last updated 12/30/14
2014 Trish's Escape from Hardware Hell -- Privacy Statement