Deleting Temporary Files Painlessly "Addendum" to the "Addendum"
Thanks to Mr. Bass for this info!
Windows Protect your Privacy
WinXP | Win2000 | Win98
| WinME
REGEDIT4
;save to text named something like url_recent.reg works for 98,
ME, 2000 and XP
; cleans IE URL drop down list and recent docs, etc. Suggest placing in
startup folder
;when rebooting just hit ENTER key twice to execute
[-HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\ TypedURLs]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\RecentDocs]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\ComDlg32]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\StreamMRU]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\RunMRU]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\Map
Network Drive MRU]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\ComputerDescriptions]
[-HKEY_CURRENT_USER\Software\Microsoft\Search
Assistant\ACMru]
__________________________________________________
Privacy for Windows XP
rem WinXP, cleans cookies, cache, temp, history, index.dat
rem put in startup folder and it'll clean each time upon logging in
rem save to text file named something like cleanxp.cmd
rem to clean index.dat files must logoff completely. Switch users wont'
cut it.
rem Netscape see Windows 2000 section here
@echo on
cd %homedrive%%homepath%
rd /s/q locals~1\tempor~1
rd /s/q locals~1\temp\tempor~1
rd /s/q cookies
rd /s/q temp\cookies
rd /s/q locals~1\history
rd /s/q locals~1\temp\history
rd /s/q recent
md recent
rd /s/q locals~1\temp
md locals~1\temp
__________________________________________________
Privacy for Windows 2000
@echo off
rem cleans Cookies, History, Temporary Internet Files for Windows 2000
rem Internet 4.x, 5.x, 6.x and Netscape 4.x,6.x
rem Note-- check your Netscape path instead of your 'default' it could
be your username
rem there are two places to replace yourusername with your own
account
rem IE and Netscape URL drop down lists are stored in the registry
rem Netscape Edit - Preferences - Clear Location Bar and use the url_recent.reg
above
rem name this entire file privacy.cmd
rem suggest putting in your StartUp folder privacy.cmd and url_recent.reg
rem HINT quick way is to logoff and login and voila all clean
rem IE and Windows
@echo on
c:\
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
rem Netscape 4.x and 6.x works
for 2000 and XP
rd /s/q c:\progra~1\netscape\users\default\cache
del /s/q c:\progra~1\netscape\users\default\cookies.txt
del /s/q c:\progra~1\netscape\users\default\netscape.hst
@echo off
rem del /s/q c:\progra~1\netscape\users\default\*.db
rem del /s/q c:\progra~1\netscape\users\default\*.dat
rem del /s/q c:\progra~1\netscape\users\default\*.js
rem *.db deletes cert7.db key3.db secmod.db
rem *.dat deletes \news\host-news\hostinfo.dat file
rem *.js deletes prefs.js and liprefs.js
rem (probably not wise or have to reconfigure Netscape each time your
start it)
rem best thing to do is Edit | Preferences | Clear Location Bar
rem making index.dat files (cache of cookies, history,
temp internet files) 0 bytes
rem to prevent growing in size and invasion of privacy. Need to do this
ONLY ONCE.
rem logoff and under the Administrator account create a text file
rem in c:\ called index.dat and right click | properties and make it READ-ONLY
rem Copy and then paste by right clicking in command prompt the following
lines (exclude rem)
rem copy c:\index.dat c:\winnt\cookies\index.dat
rem copy c:\index.dat c:\winnt\tempor~1\content.ie5\index.dat
rem copy c:\index.dat c:\winnt\history\history.ie5\index.dat
rem c: cd c:\docume~1\yourusername
rem copy c:\index.dat cookies\index.dat
rem copy c:\index.dat locals~1\tempor~1\content.ie5\index.dat
rem copy c:\index.dat locals~1\history\history.ie5\index.dat
__________________________________________________
Privacy for Win98 ( for WinME here
for WinME or see below)
autoexec.bat add the following to it to clean
your system on every boot
deltree /y c:\windows\temp
mkdir c:\windows\temp
deltree /y c:\windows\cookies
deltree /y c:\windows\history
deltree /y c:\windows\tempor~1
deltree /y c:\windows\recent
deltree /y c:\temp
deltree /y c:\windows\applog
erase c:\windows\desktop\*.tmp
#erase c:\windows\win386.swp
deltree /y c:\progra~1\netscape\users\default\cache
erase c:\progra~1\netscape\users\default\cookies.txt
erase c:\progra~1\netscape\users\default\netscape.hst
erase c:\progra~1\netscape\users\default\*.dat
erase c:\progra~1\netscape\users\default\*.db
_______________________________________________
these files are deleted by the above batch file put in autoexec.bat
unfortunately these are impossible to delete while in windows so it'll
clean them
when it reboots. Oh so clean just like Irish Spring.
C:\WINDOWS\Cookies\index.dat
C:\WINDOWS\History\History.IE5\index.dat
C:\WINDOWS\Temporary Internet Files\Content.IE5\index.dat
________________________________________________
For Netscape users be sure to change default to whatever your profile
name if it's different than default
Make wish to delete your win386.swp file everynow and then and then defrag
by uncommenting #.
__________________________________________________
Privacy for WinME
Deleting index.dat files under WindowsME:
This should allow you to run all those cleanup commands from the autoexec.bat
under WindowsME.
1. Make a file init.bat that contains the commands you
want to run at startup, such as:
DELTREE /y c:\window\history\*.* >nul, etc.
2. Save it in c:\
3. In Windows Explorer, select init.bat, right click to get the menu,
choose "Properties", "Program", then make sure "Close
on exit" is selected"
4. Using Regedit, under
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
add a new string value, name it "init" and set its value to
"c:\init.bat".
When you start up, WindowsME will open a DOS box and
run the commands in the batch file, then close the DOS box. This is working
for me...thanks to Bobby Roos
Web Banner Ad Blocking/Hosts (see Win98) works for XP
not for 2000 though.
Block BANNERS with my dinky customized hosts.zip
file 43KB from smart-design.com
unzip to
Windows 95/98/ME ---- c:\windows
Windows NT 4.0/2000 (2000 won't work)--- c:\winnt\system32\drivers\etc
Windows XP --- c:\windows\system32\drivers\etc
Linux --- /etc/hosts
Netscape cleaning under Win2000 works for XP as well.
Enhance your security under winxp with XPantispy
freeware.
last updated April 2002
Back to
the First XP, 2000 & ME Addendum
Back to Deleting Temporary Files
Painlessly for 98 or 95
|