:: :: WELCOME to DELINDEX! :: :: Using "::" is easier to read than "rem"; it's technically faster than rem or :: skipped lines. Blank lines before sections and labels are for readability. :: Programming comments after :: are to make code easier to understandand/edit; :: other explanations are in NOTES. All menus default to Quit after 99 seconds. :: :: DEL is used when certain files need to be protected. DELTREE is used for all :: other files & folders because it never gives a file not found message and it :: can delete hidden, system, & read only files and folders that are not empty. :: :: 95% of this was typed in QEdit Advanced v3.0C (now TSE Jr, semware.com). I :: also use EditPad Lite (free, jgsoft.com), but QEdit made box drawing/ascii :: characters easy, and it works with LIST (buerg.com). LIST is THE best DOS :: file manager/viewer extant; I wouldn't have created DELINDEX without it. :: :: "The beauty of doing things with DOS batch language is the inherent :: simplicity & elegance of the limited command set. The challenge is in using :: these limited commands to accomplish whatever task you might dream up!" :: --Eric Phelps (ericphelps.com) :: :: :: START OF PROGRAM :: :: @echo off :: This makes the program run faster: lh c:\windows\smartdrv.exe 4096 16>nul deltree /y c:\RenMan.*>nul if "%1"=="delta" goto DELTA if "%1"=="DELTA" goto DELTA c: cd\ cls set RenMan=%path% set path=%path%;c:;c:\windows\command REM>c:\RenMan.c2 mem /c|find "ANSI">nul if errorlevel 1 del c:\RenMan.c2 if "%1"=="run" goto RUN if "%1"=="RUN" goto RUN :: :: :: HEADER :: :: :HDR if exist c:\RenMan.c2 goto ANSI cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º  DELINDEX 5.1 by Renaissance Man  06/11/2004  Use at your own risk!  º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ goto HDRX :ANSI if exist c:\RenMan.w2 goto WN2 if exist c:\RenMan.f2 goto REDHEAD echo   DELINDEX 5.1 by Renaissance Man  06/11/04  Use at your own risk!   :: :HDRX if exist c:\RenMan.m2 goto MENU2 if exist c:\RenMan.r2 goto RUN2 if exist c:\RenMan.n2 goto NOTES2 if exist c:\RenMan.s2 goto CREATE2 if exist c:\RenMan.s3 goto CREATE3 if exist c:\RenMan.e2 goto END2 if exist c:\RenMan.i2 goto INTRO2 if exist c:\RenMan.f2 goto FAQ2 if exist c:\RenMan.w2 goto WN2 :: echo  PLEASE read Additional Notes BEFORE first running DELINDEX so you fully echo understand what DELINDEX does and why it does it. The next screen has a echo summary of most of the files and folders deleted by DELINDEX. echo. echo  ¯WARNING® Record IDs & passwords for websites that require them before you if exist c:\RenMan.c2 echo  ¯WARNING® echo use DELINDEX because you won't be able visit them without signing in. You echo can save/restore cookies of your choice; see Additional Notes. Record any echo needed web addresses in the drop-down History box in IE; that information echo will be deleted. You'll also lose any saved Offline Content. echo. echo  COMMAND-LINE SWITCHES: Type C:\DELINDEX RUN to run immediately. For the echo DELTA switch, see Additional Notes. echo. echo  RUN is disabled in Windows because you must be in DOS to delete index.dat echo files. All other menu items work in DOS and Windows. To use RUN, echo  In Win 98 reboot into DOS mode. echo  In Win ME use a regular StartUp disk; select #4, Minimal Boot. Or make a echo "Superfast" StartUp disk configured for DELINDEX; use menu option CREATE. echo. pause :: :: :: INTRO :: :: :INTRO REM>c:\RenMan.i2 goto HDR :: :INTRO2 del c:\RenMan.i2 echo  DELINDEX DELETES THESE FOLDERS (* = recreated by Windows): echo C:\Windows\Cookies*, History*, Recent*; C:\Windows\Update Setup Files; echo C:\Windows\Temporary Internet Files* (& alt TIF: ...\Locals~1\Tempor~1*) echo. echo  DELINDEX DELETES THESE FOLDER CONTENTS: echo C:\Program\OfficeUpdate (except log file); C:\Temp; and, in C:\Windows\: echo Applog; Temp; PCHealth\Helpctr\Datacoll; Downloaded Program Files (except echo Google Toolbar); Applic~1\Micros~1\Intern~1\UserData\; Applic~1\Micros~1\- echo Office\Recent\ echo. echo  DELINDEX DELETES THESE FILES: echo C:\Windows\ShellIconCache; C:\*.tmp; C:\Windows\*.tmp; C:\Windows\*.bad; echo C:\Windows\sysbckup\rbbad.cab; C:\Windows\Help\*.cnt; Windows system log echo files; C:\WUTemp; C:\My Pictures\thumbs.db and C:\My Documents\My Pictures\ echo thumbs.db; Junk files in SunJava, AVG, AT&T, Adobe Reader, System Mechanic, echo Corel Print Office, Ad-Aware, Belarc Advisor, RegSupreme, Spybot S&D; some echo Trojans & Hijackers echo. pause :: :: :: MENU :: :: :MENU REM>c:\RenMan.m2 goto HDR :: :MENU2 del c:\RenMan.m2 echo. if exist c:\RenMan.c2 echo  echo R = RUN Delindex echo A = ADDITIONAL Notes echo V = VIEW Program Code echo O = OPENING Screen echo W = WHAT'S New in DELINDEX 5.0/5.1 echo F = FREQUENTLY Asked Questions/User Comments echo C = CREATE a specially configured "Superfast" StartUp Disk echo Q = QUIT echo. if exist c:\RenMan.c2 echo  choice /n/c:qfwavroc/t:q,99 " Enter R, A, V, O, W, F, C, or Q: " if errorlevel 8 goto CREATE if errorlevel 7 goto HDR if errorlevel 6 goto RUN if errorlevel 5 goto VIEW if errorlevel 4 goto NOTES if errorlevel 3 goto WHATSNEW if errorlevel 2 goto FAQ goto B4X :: :: :: RUN :: :: :RUN REM>c:\RenMan.r2 goto HDR :: :RUN2 del c:\RenMan.r2 REM>c:\RenMan.e2 xcopy /?|find "/L">nul if errorlevel 1 goto XWIN echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º You cannot use the RUN section if Windows is running. º echo º Reboot to DOS (Win98) or use a Startup Disk (WinME). º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo. deltree /y c:\RenMan.e2>nul pause goto MENU :XWIN echo FREE SPACE BEFORE DELINDEX:>c:\RenMan.B4 echo FREE SPACE AFTER DELINDEX:>c:\RenMan.Aft ctty nul ::without ctty nul the next line displays messages dir c:\bydptgf /-s|find "free">>c:\RenMan.B4 ctty con if exist c:\RenMan.c2 echo  type c:\RenMan.B4 if exist c:\RenMan.c2 echo  echo Running..... :: :: :: SECTION 1 :: :: ctty nul attrib c:\windows\downlo~1\*.* -r -a -s -h /s :: Protect Google Toolbar attrib +r c:\windows\downlo~1\google*.* :: ::  ADD OTHER FILES HERE (e.g., PC Pitstop)  :: echo Y|del c:\windows\downlo~1\*.* attrib -r c:\windows\downlo~1\google*.* ctty con :: :: WINDOWS/OFFICE UDATE SECTION :: :: Windows 98 users change Window~2 (Windows Media Player) to point :: to the WindowsUpdate folder. This code will NOT delete WMP. :: deltree /y c:\windows\temp\ if exist c:\progra~1\window~2\V4\iuhist.xml goto V3&4 :: WindowsUpdate[V4] no longer uses wuhistv3.log if exist c:\progra~1\window~2\wuhistv3.log goto V3&4 goto NOLOG :V3&4 xcopy c:\progra~1\window~2\V4\iuhist.xml c:\windows\temp\>nul xcopy c:\progra~1\window~2\wuhistv3.log c:\windows\temp\>nul xcopy c:\progra~1\window~2\austate.cfg c:\windows\temp\>nul deltree /y c:\progra~1\window~2\>nul md c:\progra~1\window~2\V4>nul move c:\windows\temp\iuhist.xml c:\progra~1\window~2\V4\>nul move c:\windows\temp\*.* c:\progra~1\window~2\>nul :NOLOG if not exist c:\progra~1\office~1\ouhistv3.log goto NOLOG2 xcopy c:\progra~1\office~1\ouhistv3.log c:\windows\temp\>nul deltree /y c:\progra~1\office~1\>nul move c:\windows\temp\ouhistv3.log c:\progra~1\office~1\>nul :NOLOG2 :: This is NOT a log of downloaded updates deltree /y c:\windows\window~1.log :: This WindowsUpdate temp folder should have been deleted deltree /y c:\WUTemp deltree /y c:\windows\wininit.err deltree /y c:\windows\wininit.log deltree /y c:\windows\wmsetup.log :: The following are application specific: ::AVG deltree /y c:\Videorom.bin deltree /y c:\AVG6DB_F.DAT deltree /y c:\progra~1\grisoft\avg6\log\ :: Once installed, updates not needed deltree /y c:\progra~1\grisoft\avg6\update\ ::AT&T :: There are 2 other copies of poplist deltree /y C:\Progra~1\AT&T\WnClient\data\oldpop~1.txt :: History keeps getting bigger. Problems? Put :: in front of line deltree /y C:\Progra~1\AT&T\WnClient\data\history.txt ::COREL deltree /y C:\Progra~1\Corel\Printo~1\search.idx ::ADOBE deltree /y c:\windows\Applic~1\Adobe\Acrobat\6.0\cache\search\ ::BELARC ADVISOR deltree /y c:\progra~1\belarc\advisor\system\tmp\ deltree /y c:\progra~1\belarc\advisor\*.bci ::SYSTEM MECHANIC deltree /y c:\progra~1\iolo\system~1\manua*.txt ::AD-AWARE deltree /y c:\progra~1\lavasoft\ad-awa~1\reflis~1.old ::REGSUPREME deltree /y c:\progra~1\regsup~1\data\fileca~1.dat ::SPYBOT S&D deltree /y c:\progra~1\spybot~1\updates\*.zip :: :: :: SECTION 2 :: :: ::DELETE FILES ON C:\ deltree /y c:\bootlog.txt deltree /y c:\scandisk.log deltree /y c:\winzip.log deltree /y c:\*.tmp deltree /y c:\*.bak deltree /y c:\mypict~1\thumbs.db deltree /y c:\mydocu~1\mypict~1\thumbs.db :: ::  ADD deltree /y [other paths to picture folders]\thumbs.db HERE  :: deltree /y c:\temp\ deltree /y c:\windows\userdata\index.dat ::DETETE FILES ON C:\WINDOWS\ deltree /y c:\windows\schedlog.txt deltree /y c:\windows\setupapi.log deltree /y c:\windows\shellI~1 deltree /y c:\windows\sti_ev1.log deltree /y c:\windows\sti_tr~1.log deltree /y c:\windows\ndislog.txt deltree /y c:\windows\applog\ deltree /y c:\windows\cache\ deltree /y c:\windows\downlo~2 deltree /y c:\windows\help\*.cnt deltree /y c:\windows\msdownld.tmp deltree /y c:\windows\recent deltree /y c:\windows\*.tmp deltree /y c:\windows\Applic~1\Micros~1\Intern~1\UserData\ deltree /y c:\windows\Applic~1\Micros~1\Office\Recent\ deltree /y c:\windows\pchealth\helpctr\datacoll\ deltree /y c:\windows\system\*.tmp deltree /y c:\windows\system\sfp\sfplog.txt deltree /y c:\windows\system\wbem\logs\ :: :: :: OPTIONAL :: :: :: *IF* YOU HAVE SYSTEM RESTORE DISABLED AND *STATEMGR UNCHECKED IN MSCONFIG, :: remove :: from the next line. ::deltree /y c:\_RESTORE\ :: Do NOT make a dummy _RESTORE file; it keeps updates from being installed. :: If the next line points to Windows Update Setup, delete the :: ::deltree /y c:\windows\window~1\ :: IF YOU DO NOT WANT ScanReg /opt TO RUN, REMOVE :: FROM THE NEXT LINE ::goto NOSCAN :: if not exist c:\windows\command\scanreg.exe goto NOSCAN if not exist c:\RenMan.c2 cls if exist c:\RenMan.c2 echo  echo. echo Your registry is now being compacted with ScanReg.exe /opt c:\windows\command\scanreg.exe /opt :NOSCAN :: Scanreg /opt makes new compact registry files, labels the old ones "bad". deltree /y c:\windows\*.bad>nul deltree /y c:\windows\sysbckup\*.bad>nul deltree /y c:\windows\sysbckup\rbbad.cab>nul :: ::  ADD MORE CODE HERE  :: :: :: DELTA :: :: :DELTA ::  Tinker with DELTA code or setup at your own risk. See ADDITIONAL NOTES.  deltree /y c:\windows\cookies>nul deltree /y c:\windows\tempor~1>nul deltree /y c:\windows\locals~1\tempor~1>nul deltree /y c:\windows\history>nul :: The following are Trojans and hijackers deltree /y c:\windows\system\msrexe.exe>nul deltree /y c:\windows\system\odbc.hta>nul deltree /y c:\windows\system\valg.hta>nul deltree /y c:\windows\my.css>nul deltree /y c:\windows\system32\rundll32.vbe>nul deltree /y c:\windows\av.exe>nul deltree /y c:\windows\msgsvr32.exe>nul deltree /y c:\windows\system32\xvwizard32.hta>nul :: SUN JAVA cache grows large; it's rebuilt as needed; a home for hijackers. deltree /y c:\windows\jpi_ca~1>nul deltree /y c:\progra~1\outloo~1\outl32c.exe>nul deltree /y c:\i.exe>nul deltree /y c:\I6.htm>nul deltree /y c:\Info6.cab>nul :: :: The next line separates DELINDEX from DELTA; do NOT delete! if exist c:\RenMan.e2 goto HDR :: :: :: END OF DELINDEX FILE DELETION :: :: :: The following line will NOT work in DOS because of long filenames. if exist c:\GdCookie\*.* xcopy /y c:\GdCookie\*.* c:\windows\Cookies\>nul cls exit goto EXIT :: :: :: END OF DELTA SECTION :: :: :END2 ctty nul dir c:\bydptgf /-s|find "free">>c:\RenMan.Aft ctty con if exist c:\RenMan.c2 echo  type c:\RenMan.B4 if exist c:\RenMan.c2 echo  type c:\RenMan.Aft if exist c:\RenMan.c2 echo  echo Finished..... echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º  In Windows ME, remove any floppy and press Ctrl-Alt-Delete º echo º  In Windows 98, type WIN and press Enter º goto BOTLN :: :: :: END OF DELINDEX :: :: :: WHAT'S NEW :: :: :WHATSNEW REM>c:\RenMan.w2 goto HDR :WN2 del c:\RenMan.w2 :REDHEAD if exist RenMan.c2 echo   DELINDEX 5.1 by Renaissance Man  06/11/04  Use at your own risk!   if exist RenMan.f2 goto FAQ2 echo WELCOME! HERE'S WHAT'S NEW IN 5.0: echo  Accommodates the v4 WindowsUpdate detection engine. echo  All commands are now separate lines of code, making DELINDEX easier to read, echo understand, and edit. More programming comments added for the same reason. echo  Most notes revised; new notes added. echo  Deletes several application-specific junk files. echo  Deletes some trojans and hijackers. echo  Corrected *log.txt which in DOS was seen as *.txt echo  Deletes *.cnt (Help tables of contents) in C:\Windows\Help\. echo  DELINDEX uses DELTA section instead of duplicating code. echo  The Registry is compacted using ScanReg /opt. echo  The display of Free Space BEFORE is above Free Space AFTER. echo  Removed the switches for NOTES and ADD. ADD rewritten and renamed CREATE. echo  Menu option CREATE makes a "Superfast" StartUp disk configured for DELINDEX. echo  Long URLs shortened by www.snipurl.com; easier for you to visit. echo  Frequently Asked Questions and User Comments. echo WHAT'S NEW IN 5.1 echo  Bug fixes, minor changes. echo. pause goto MENU :: :: :: FAQ :: :: :FAQ REM>c:\RenMan.f2 goto HDR :FAQ2 del c:\RenMan.f2 echo Since I can't provide support, I asked that problems and questions be posted echo at Computing.net. Some have emailed me asking for help anyway. echo. echo All questions are important (at least to the questioner) but they are not all echo created equal. Anyone can effectively use DELINDEX even without much knowledge echo of DOS or Windows. But those who have to ask basic (but legitimate) questions, echo such as how to download to C:\, how to make and/or use a StartUp disk, how to echo make and rename folders and copy files probably should wait to use DELINDEX. echo. echo Most questions about not being able to run DELINDEX have to do with spelling, echo syntax, not being in DOS, DELINDEX not being in the root directory of C:\, echo and/or not using a (proper) StartUp disk. Six other questions follow. echo. echo Thanks to those who were kind enough to say thanks and/or offer new info, echo comments, and suggestions. My apologies to all for not responding, but I do echo read all your emails. echo. echo --Renaissance Man echo. pause if exist c:\RenMan.c2 echo  cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º FREQUENTLY ASKED QUESTIONS º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo Q. "IS THERE A VERSION OF DELINDEX FOR WINDOWS XP?" echo. echo A. The #1 question. I don't have XP; it does not have DOS; the command set for echo batch files may be different; the files may be named differently and/or in echo different locations; if I could write the code, I couldn't test it. Deltree echo doesn't come with XP, but it works. Choice.com doesn't come with XP or work echo with it, but Choice.exe from the Windows 2000 Professional Resource Kit does. echo For these reasons, and because I'll probably skip XP and wait for the next OS, echo it's unlikely that I'll make an XP version of DELINDEX. The core of DELINDEX echo (file deletion) is very simple, and probably could be adapted for XP. echo. echo XP users may want to check out these: echo  ScrubXP from www.bartdart.com looks promising. This is not a batch file. echo  Milly's WinClean.cmd for XP at www.imilly.com; click on the WinClean link. echo  Fred Langa's CleanXP.bat at http://snurl.com/4xhu. This "template" must be echo edited. Using "cd [dir]" and "deltree *.*" instead of "deltree c:\[dir\]" echo IMHO is neither safe nor sound. echo. pause cls echo. echo Q. "MY AV PROGRAM SAYS DELINDEX HAS A VIRUS/WORM/TROJAN." echo. echo A. One user, who had been using DELINDEX with no problem, downloaded new virus echo definitions from McAfee; subsequent scans reported it with a "univ.script/99" echo virus and "auto-deleted" it. Another said Panda showed DELINDEX with a "Trojan echo Horse LC". DELINDEX is not (and does not have) a virus, trojan, or worm. My echo Norton, AVG, and eTrustEZ AV programs don't report any problems with DELINDEX. echo You should be able to exclude DELINDEX from scans or at least have the option echo not to delete it. If not, run DELINDEX from a floppy or get a new AV program. echo. echo. echo Q. "I HAVE PROBLEMS DOWNLOADING." echo. echo Your ISP, browser, or other software may not permit downloading executable echo (.bat, .com, .exe) files. Your AV software may be falsely reporting DELINDEX echo as infected. If you're using a download manager, try downloading without it. echo YOU control where the file is downloaded; make sure it goes on the root echo directory of C:\ and not to your Desktop or in a folder or you'll have to move echo it. Or, you may not be clicking on the right link to download. Try downloading echo DELINDEX.zip instead. echo. pause cls echo. echo Q. CAN I CHOOSE WHICH FILES ARE DELETED? echo. echo A. If you NEVER want an item deleted, put :: in front of the line. To choose echo whether or not to delete an item EVERY time DELINDEX runs, change "deltree /y" echo to "deltree" by simply deleting the " /y". You'll be prompted for each line echo where you removed the " /y". You'll trade speed for flexibility. echo. echo. echo Q. WHY IS THERE SOMETIMES LESS FREE SPACE AFTER DELINDEX? echo. echo A. I don't know. It rarely happened (or seemed to) on my system. Sometimes I echo misread the display, changed in 5.0. I'm sure the numbers (from dir) are echo correct. If you know why it happened in previous versions (or if it happens in echo this one) please email me at delindex@yahoo.com. echo. pause cls echo. echo Q. "CAN I ADD OR REMOVE CODE OR MODIFY DELINDEX?" echo. echo A. Yes! I'd guess 20-30%% of users have modified DELINDEX. The coding is clear, echo full of comments, and has suggested places to add more code. Please see the echo editing suggestions in Additional Notes. Be careful: misspelling a command or echo filename, or making a syntax or coding error can be benign--or a disaster. echo Deltree is a powerful and dangerous command. echo. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º USER COMMENTS º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo Renaissance Man wrote a batch file program that should be considered a giant echo leap toward cleaning your computer of hidden and unwanted files. He could have echo encased it in an .exe but left it open so you & I can add, delete, rearrange, echo and revise the program to meet our specific goals. I downloaded DELINDEX.bat, echo made a copy, and refined the copy for my requirements. I use it every day. RM echo has provided the foundation, and it's up to us to acclimate it to our own echo environment. --Poemosophi echo. pause cls echo. echo My Win98 system suffers from "gig envy." My 2.9GB drive gets full pretty fast, echo but running your DELINDEX weekly has made it a lot leaner and meaner. --Tommy echo. echo. echo I run Win98SE on a 500MHz/280MB RAM system. Prior to running your program I echo checked the Index.dat files & found 3000+ KB. While it was cleaning I thought echo my whole hard drive was being erased, it cleaned out many, many files. I did echo another check & ended up with about 60KB of index.dat files. Hot damn! --Harry echo. echo. echo DELINDEX 4.2 worked as stated at Computing.Net on this Dell Inspiron 7500 with echo Windows 98SE. I started out with 1898 MB of free space and ended with 2512 MB. echo Also, a slow start-up problem involving the building of the Desktop Icons has echo been cleared up after running Delindex. --Bill echo. pause goto MENU :: :: ÛÛ NOTES :: :NOTES REM>c:\RenMan.n2 goto HDR :: :NOTES2 del c:\RenMan.n2 ::if not exist c:\RenMan.c2 echo. echo I'm grateful for Computing.net and all the people there who've helped me, echo especially Leonardo Pignataro for great answers to my coding questions, and echo to "ShutMeUpOrDown:)" for making DELINDEX available at HIS (not my) website: echo http://burzurq.com/forum/delindex.html. Special thanks to Iain for help with echo fixing bugs in 5.0. echo. echo I welcome bug reports, suggestions, comments, and thank yous. Since I can't echo provide support, please post problems/questions about downloading, setup, and echo running DELINDEX at www.computing.net on the Win ME forum, with DELINDEX in echo the subject line. Many knowledgeable people there are willing to help. (As echo with any forum, be wary of quick guesses and one-size-fits-all answers.) I echo hope you'll find DELINDEX easy to use, effective, and informative. Enjoy! echo. echo Sincerely, echo. echo Renaissance Man echo New York City echo delindex@yahoo.com echo. pause if exist c:\RenMan.c2 echo  cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍ» echo º DISCLAIMER º echo ÈÍÍÍÍÍÍÍÍÍÍÍͼ if exist c:\RenMan.c2 echo  echo DELINDEX has been extensively tested in WinME/IE 5.5 SP2 and works fine on my echo Dell Inspiron 7500 laptop, 256MB memory, 20GB hard drive. It also works with echo IE6. I can't say how well it will work on your system. If you want a guarantee, echo buy a toaster. This program works with Win 9x/ME and NOT with XP, NT, or 2000. echo. echo "Use at your own risk!" was added to the header to remind you that it's YOUR echo responsibility to make sure that DELINDEX does what you want; doesn't do what echo you don't want; that DELINDEX and other programs don't conflict (e.g., DELINDEX echo restoring cookies and another deleting them); and, that it works with your OS. echo. echo  Win98 Users: See the note in the Windows Update Setup Files section for a echo recommended change. You must determine if other changes are needed & make them. echo. echo DELINDEX is freeware; please share it unmodified. Original size: 48,834 bytes. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍ» echo º PURPOSE º echo ÈÍÍÍÍÍÍÍÍͼ echo The PRIMARY purpose of DELINDEX is to delete Index.dat files which keep getting echo bigger. After they are deleted, Windows recreates two at 16KB and one at 32KB. echo Go on the Internet and you have four 32KB index.dat files. Some of them can echo grow to more than 50 times that size, and large index.dat files can cause echo performance problems with browsing. They contain all your web surfing history echo since they were (re)created, and can't be deleted if Explorer is running. echo. echo To see what they contain, get IE Cleaner free from www.vb2java.com. It will echo show you all the sites you visited and every link you've clicked on. Click on echo "Remove URL History" and they're gone. BUT: (a) the index.dat file is NOT echo reduced in size, and (b) there's another index.dat file with the same info echo that's not cleaned out! Anyone (your spouse, employer, or a government agency) echo can easily check to see if your web surfing habits meet with their approval. echo. echo The SECONDARY purpose is to delete other junk files for reasons of performance, echo space, & privacy. As Neil J. Rubenking said, "Even though the prices of immense echo hard disks continue to drop, there's never a good reason to waste disk space." echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º PURPOSE, cont.º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo Those looking to DELINDEX to safeguard their privacy may be pleased to know it echo may foil most attempts at casual snooping, but disappointed to learn it won't echo stop sophisticated business/government attempts to find data. DELINDEX deletes echo but doesn't securely wipe files, a time consuming process. You can replace the echo Deltree command with EraserD.exe or Wipe.exe. Go to http://snurl.com/4xnz and echo see the ReadMe.txt file for Eric L. Howes TIF-Clean for more info. Unless you echo are really paranoid or doing something illegal, it's not worth it. Besides, echo anyone going to "questionable" websites probably saved "questionable" files to echo their hard drive anyway. So what's the point, unless the files are encrypted? echo. echo Even if DELINDEX did wipe the files in question, what about cluster tips (the echo "empty" space between the end of data and the end of the file), your swap file, echo and the free space? Whoops! If you think those areas couldn't possibly have any echo information you wouldn't want found, think again. Use Norton UnErase Wizzard echo and you'll find thousands of recoverable files. Recommended: Eraser, which can echo wipe files, cluster tips, and free space using Guttman, DoD, or Pseudorandom echo methods. It can wipe a fixed size swap file in DOS with EraserD (included). echo Free at www.heidi.ie/eraser. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º INFO/SUGGESTIONS º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo  DELINDEX should be on C:\ because it runs MUCH faster than on a floppy. If echo you run DELINDEX on multiple computers for one-time-only tune-ups, you can put echo it on a floppy (Win98) or a StartUp disk (WinME) & "carry DELINDEX with you echo wherever you go," to paraphrase one user.  Run DELINDEX weekly if not daily. echo  Defrag if you free up a lot of space.  DELINDEX may take a while to run on echo first use; subsequent runs are much faster.  Use attrib /s index.dat to find echo index.dat files; dir will NOT find them. echo. echo  ME users: please use the CREATE routine to create a special StartUp disk. echo It's much faster than a standard StartUp disk, makes it easier to run DELINDEX, echo and runs it in color (much nicer!).  On a standard StartUp disk, edit echo a:\config.sys and change menudefault=HELP,30 to menudefault=QUICK,10 which echo selects #4 (Minimal Boot) after 10 seconds.  For color in Win98, add this echo line to C:\config.sys: devicehigh=c:\windows\command\ansi.sys echo Add the same line to A:\config.sys for color with a standard ME StartUp disk. echo. echo  The Recycle Bin is NOT cleaned because many people park files there before echo deleting them permanently. Empty it when you're sure you don't need the files. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍ» echo º REGISTRY º echo ÈÍÍÍÍÍÍÍÍÍͼ echo Use a registry cleaner to remove obsolete and erroneous entries. The registry echo will be smaller & less likely to cause errors. With any cleaner, do NOT delete echo "duplicate" files! Each of these cleaners finds errors the others can't. All echo have an undo function if cleaning causes problems. echo  RegSupreme ($15) Astoundingly fast and thorough. www.macecraft.com echo  RegSeeker (free) Probably not for newbies. www.hoverdesk.net/freeware.htm echo  EasyCleaner ($15) Very good. One user claims problem w/routers. toniarts.com echo  MS RegClean v 4.1a (free) A few reported problems on WinME systems; it works echo for me. http://snurl.com/4xnu and most shareware sites, but not from MS. echo  System Mechanic 4 ($50) VG; use Google for discounts/rebates. www.iolo.com echo  Norton WinDoctor in Utilities & NSW (Fix regstry errors yourself! Most Norton echo "solutions" are wrong; usually it's best to delete invalid entries). echo  Remove MRU registry entries with MRU Blaster; much better than List Zapper; echo free from http://snurl.com/4uph. Uncheck "Windows Stream MRU". echo To restore the registry to a properly functioning prior date, type scanregW echo /restore in Start/Run (ME) or scanreg /restore at a DOS prompt (98). Try this echo before SystemRestore for minor glitches (changed IE toolbars, hijacked Start echo page). There are 5 registry backups; edit scanreg.ini to change the default. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º OTHER CLEANERS º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo  I know of 3 other BATCH file programs that delete index.dat files. They don't echo clean out nearly as much as DELINDEX. echo  Several shareware sites list about 100 "Drive Cleaners," most between $0-40, echo and between 250KB and 2.5MB in size. DELINDEX is 48KB. echo  BEWARE of Dustbuster ("cleans out over 700 different types of useless files echo and directories") and Find Junk Files ("can find more than 165 types of junk echo files"). Both take out a lot more than the garbage. Any cleaner that claims echo to delete more "junk" files than you ever imagined existed should be suspect. echo. pause if exist c:\RenMan.c2 echo  cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º ¯EDITING WARNING® º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ if exist c:\RenMan.c2 echo  echo MODIFYING DELINDEX: echo  Edit this file to meet your needs ONLY if you know batch file/DOS commands. echo  Back up this file before you edit it. echo  Put :: in front of a line to keep it from running instead of deleting it; echo it's easier to undo. echo  DO NOT DELETE OTHER *.dat files! echo  There are 3  clearly marked  sections where you can add additional code. echo. echo MODIFYING THE DELTA SECTION: echo  Deleting TEMP folder contents can prevent programs from installing/updating. echo  Deleting the RECENT folder causes ListZapper to delete files (but not echo folders) on C:\. echo  Do NOT use DELINDEX RUN in Scheduled Tasks or Autoexec.bat; it deletes Temp echo files. Deleting other files and folders at (re)boot not tested. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º HOW TO SAVE SPECIAL COOKIES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo There are 3 steps to saving and restoring cookies that have IDs & passwords echo that allow you to visit a site without having to sign in: echo  (1) Make a new folder, C:\GdCookie echo. echo  (2) Copy the cookies you want to save from C:\Windows\Cookies to C:\GdCookie. echo Some you may recognize by the name (nytimes). You'll have to look inside others echo with a file viewer or text editor to see what they are (cgi-bin). echo  (2 Alternate) If you have hundreds of cookies it may be easier to start from echo scratch. Record all your IDs and passwords first! echo  In C:\Windows: Rename the Cookies folder. Make a new Cookies folder. echo  On the Web, visit and sign in at all the sites that require an ID & password. echo  Look at C:\Windows\Cookies and delete any references that are not associated echo with those sites (e.g., Doubleclick). echo  Copy the "good" cookies from C:\Windows\Cookies to C:\GdCookie. echo  Delete the renamed folder when you're sure you don't need the cookies. echo. echo  (3) Set up the DELTA routine. You MUST use DELTA to copy saved cookies to the echo Cookies folder; long filenames CANNOT be copied correctly in DOS. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º COMMAND-LINE SWITCHES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo These are really command-line/batch-file parameters. Anything following a echo command is a parameter. A program can process a parameter directly or use it echo internally to SWITCH to (or skip) a set of instructions. DELINDEX has two echo command-line switches: RUN, to run immediately (no intro, notes, menu) and echo DELTA which is explained below. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º The DELTA COMMAND-LINE SWITCH º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo The DELTA routine deletes the FOLDERS the index.dat files are in AND restores echo any saved cookies each time you (re)boot your computer. Deleting the folders echo ensures that the index.dat files are rebuilt at minimal size. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º DELTA SETUP IN WinME & Win98 º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo In Control Panel: echo  Click on Scheduled tasks; double click on Add Scheduled Task. echo  In Scheduled Task Wizard, click on Next. echo  Click on Browse; navigate to DELINDEX.BAT and double click on it. echo  In the Name box, enter: Delete Index.dat files. echo  Click on When My Computer Starts; click on Next. echo  Check Open Advanced Properties; click on Finish. echo  In the run box on the Task tab you MUST add " DELTA" so the entry is: echo C:\DELINDEX DELTA echo  Click the settings tab; uncheck all boxes; click on Apply; click on OK. echo. echo Alternate Delta setup for Win98 ONLY echo  Put a shortcut to Delindex in C:\Windows\Start Menu\Programs\Startup\; right echo click on the shortcut; click on Properties; click on the Program tab; in the echo Cmd line box you MUST add " DELTA" so the entry is: C:\DELINDEX DELTA echo Click on Close On Exit, Apply, and OK. echo ¯ WARNINGS ®  Adding C:\DELINDEX DELTA to c:\autoexec.bat deletes the folders if exist c:\RenMan.c2 echo ¯ WARNINGS ® echo but saved cookies will NOT be copied correctly.  In WinME, Startup items run echo AFTER Explorer is loaded and index.dat files will NOT be deleted. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º CREATE (for WinME) º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ REM>c:\RenMan.z2 goto DUAL :DUAL2 del c:\RenMan.z2 echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º DID DELINDEX WORK? º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo To verify that DELINDEX worked, look at the Free Space display; look for the echo affected files and folders while you're still in DOS; check the size of the echo index.dat files (in Windows) before and after you run DELINDEX. echo. pause if exist c:\RenMan.c2 echo  cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º WHY FILES & FOLDERS ARE DELETED º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ if exist c:\RenMan.c2 echo  echo Please read the explanations in the following sections and decide if DELINDEX echo does what you want. Some people do NOT agree with the rationale given. If you echo want more info, go to any websites shown or search in Google as I did. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º DOWNLOADED PROGRAM FILES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo You can easily accumulate several MBs of ActiveX controls & Java applets after echo a few web sessions. They can be an entry point for viruses, worms, and Trojans. echo You don't need the files after you have viewed the pages that required them. echo. echo "ActiveX programs are only downloaded when they don't already exist on your echo system. Thereafter, the existing copy is used by any site that requires its echo function no matter what your security settings. If several people use a echo computer, one of them can accept an ActiveX download which then could be echo executed by the other users who think they are protected. If you have reason echo to doubt the caution of your fellow users add a command to the startup file echo to delete all files in the Windows\Downloaded Program Files folder each time echo you logon. If a hacker finds a vulnerability in an ActiveX program, its echo original trust status is worthless." http://ceepeeu.com/b400net.html echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º OFFICE UPDATE SETUP FILES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo These are files you downloaded from the MS Office Update web site. Once you echo install these files, they are no longer needed. The contents of the folder echo are deleted except for the history log. See MS KB articles 193385 & 304498. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º WINDOWS UPDATE SETUP FILES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo The WindowsUpdate\V4 folder contains a log of all of your updates (iuhist.xml; echo was wuhistv3.log) and it's important not to delete it. But "Once [this update] echo is installed and functioning properly on your system, [the setup files] may be echo deleted to free up disk space." (MS) echo. echo  Win98 NOTE: In Section 1, change Window~2 (Windows Media Player) to point to echo the WindowsUpdate folder. The code as written will NOT delete WMP. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º COOKIES (has 1 Index.dat file) º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo Some cookies are useful: they get you into sites that would otherwise require echo you to enter an ID and password. Other cookies are trackers and counters, may echo contain spyware or adware, or are for sites you'll never visit again. A 160 echo byte cookie takes up 16KB of disk space; a thousand cookies, about 16MB. echo Cookies (and the index.dat file) show your web-surfing habits and history. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º TEMPORARY INTERNET FILES (has 1 Index.dat file) º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo "These are downloaded and stored on your computer's hard disk when you visit echo web pages on the Internet.... They do not do any harm, but can take up a lot echo of disk space." http://snurl.com/4yp5 echo. echo Some people have tens of thousands of files in the Temporary Internet Files echo folder, a known cause of browsing problems. Many files are for sites you'll echo never visit again. To keep files from building up, in Internet Explorer click echo.on Tools/Internet Options; on the Advanced tab check the box next to "Empty echo Temporary Internet Files folder when browser is closed," click on Apply & OK. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º HISTORY (has 2 Index.dat files) & RECENT º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo The History folder is deleted because of the two index.dat files. The Recent echo folder is deleted for reasons of space & privacy. Both are rebuilt by Windows. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍ» echo º THUMBS.DB º echo ÈÍÍÍÍÍÍÍÍÍÍͼ echo Picture folders (e.g., "My Pictures") that display thumbnails have a thumbs.db echo file that's never resized, even if you delete some (or all) pictures. Windows echo recreates these files when you go back in the folder. More picture files? Add echo them in Section 2. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º SHELLICONCACHE º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo "ShellIiconCache is a hidden file in the Windows directory that stores icon echo cache files. Just like the temporary internet files folder, it becomes very echo unproductive when the file gets too big. This file can become very bloated and echo corrupted. (Example: black, odd looking icons.)" echo http://hardwarehell.com/bootclean.htm echo. echo A corrupted ShellIconCache file can increase your boot time. However, after echo ShellIconCache is deleted on SOME systems (not mine), boot time can be longer echo until it's rebuilt by Windows. If that happens on your system, put :: in front echo of "deltree /y c:\windows\shellI~1" in Section 2 to prevent deletion. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º BAD REGISTRY BACKUPS º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo Sometimes Scanreg[W] with the /opt, /fix, or /restore switches creates new echo copies of registry files (especially in DOS) & labels the old ones classes.bad, echo user.bad, and/or system.bad (about 7.5MB). Bad backups are labeled rbbad.cab. echo. echo ÉÍÍÍÍÍÍÍÍ» echo º APPLOG º echo ÈÍÍÍÍÍÍÍͼ echo "Task Monitor is a MS utility which keeps track of the rate of program usage to echo make defragging more efficient. With short seek times and high transfer rates echo of today's hard drives, it is probably superfluous." http://snurl.com/4ypa echo. echo "The speed benefit of [using Applog for] the specialized defrag process may not echo be noticeable and a great number of files can accumulate in the Applog folder." echo --Neil J. Rubenking. echo. echo Consider disabling Task Monitor which puts the files in Applog. Go to Start/Run echo and type msconfig; under the Startup tab uncheck Task Monitor. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º TEMP FOLDERS & TMP FILES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo "Poorly written programs, improper shutdowns, program hangs, & computer crashes echo often leave unneeded temporary files on the hard drive. These files accumulate, echo eating up hard disk space and, at times, impairing computer performance. Some echo shutdown problems and download problems can be cured by cleaning up your temp echo files." http://snurl.com/4ypt echo. echo "These leftover files not only use up disk space, but can also create printing echo & scanning problems and even problems with anti-virus programs. It's advisable echo to delete them." http://snurl.com/4yp5 echo. echo fff*.tmp files are created by MDM.EXE & MS Office in the Windows folder. To echo keep them from being created, uncheck MDM.EXE in MSConfig/Startup Tab. Also see echo MS KB article 221438. echo. echo Windows doesn't rebuild TEMP folders, so only the contents are deleted. echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º PC HEALTH\HELPCTR\DATACOLL º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo This directory becomes bloated with *.xml files. More at http://snurl.com/4ypx. echo "PC Health ... builds another set of data that is merely used to describe the echo system via System Information, for the erudition of user and tech support. Both echo subsections of the PC Health group of technologies can be a nuisance sometimes, echo and it's nice that they can be amputated separately should the need arise." echo http://snurl.com/4ypj echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º SYSTEM LOG FILES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo These Windows Diagnostic files are rarely needed. E.g., the start AND finish of echo every instance performed by Scheduled Tasks is recorded in Schedlog.txt. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍ» echo º USER DATA º echo ÈÍÍÍÍÍÍÍÍÍÍͼ echo Yet another instance of useless data MS stores on your hard drive; may contain echo an index.dat file. See http://snurl.com/4ypo echo. pause cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º OFFICE/Recent; SETUP Log º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo Deletes Windows\Applic~1\Micros~1\Office\Recent\ and the Windows\Setupapi.log. echo To prevent deletion, add :: in front of either or both lines in Section 2. The echo Setupapi.log file records information on device & driver installation, service echo pack installation, and hotfix installation. If the install is successful the echo log is not needed. Often "errors" are due to a driver not being digitally echo signed even though there's no problem with the installation. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º *.CNT FILES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍͼ echo These are Help Tables of Contents and are generated similar to the way *.GID echo files are. I recently found 145 files taking up 2.5MB on my system. Most are echo in c:\windows\help; search for others and delete them. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º END OF ADDITIONAL NOTES º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo. pause goto MENU :: :: :: VIEW :: :: :VIEW if exist c:\delindex.bat type c:\delindex.bat|more if exist c:\delindex.bat goto VU2 if exist a:\delindex.bat type a:\delindex.bat|more :VU2 echo. pause goto MENU :: :: :: CREATE :: :: :CREATE REM>c:\RenMan.s2 goto HDR :CREATE2 deltree /y c:\RenMan.s2>nul :: :DUAL echo This routine (which can be run in Windows or DOS) creates a "Superfast" StartUp echo disk and adds Autoexec.bat and Config.sys files configured to run DELINDEX in echo color when you boot up with it. You have a choice of what happens at bootup: echo run DELINDEX immediately or display a menu (Run, Start Screen, or Quit). Loads echo ANSI.SYS (for color) and DOSKEY. Type DOSKEY /? at a DOS prompt for more info. echo. echo This disk should be used to run DELINDEX only; always have a regular StartUp echo disk on hand. echo. if exist RenMan.z2 goto DUAL2 REM>c:\RenMan.s4 echo. echo Enter M to create a StartUp disk that displays a DELINDEX MENU after bootup echo Enter R to create a StartUp disk that RUNS DELINDEX immediately after bootup echo Enter Q to Quit & Return to the Menu without creating a Startup disk echo. choice /C:mrq/N/T:q,99 " Enter M, R, or Q: " if errorlevel 3 goto MENU if errorlevel 2 deltree /y c:\RenMan.s4>nul :READY cls CTTY nul :: This is test to see if there's a floppy in a: %COMSPEC%/F/CDIR/ADH/W/-P a: |FIND ":\" CTTY con if errorlevel 0 if not errorlevel 1 goto READY2 echo No disk (or an unformatted disk) in A: will bring you here. echo. echo If there is NO disk in A: insert a disk in A: and press C to Continue, or echo If there IS a disk in drive A: press U for Unformatted, or echo Press Q to Quit and return to the Menu. echo. choice /n/c:uqc/tq,99 " Enter C, U, or Q: " if errorlevel 3 goto READY if errorlevel 2 goto MENU :READY2 if exist c:\RenMan.c2 echo  cls echo. echo ¯WARNING!® The disk in A: will be REFORMATED. echo. echo If this is NOT want you want to do, remove the disk now. echo. echo. pause if exist c:\RenMan.c2 echo  cls echo. format a: /u/autotest if errorlevel 0 if not errorlevel 1 goto CREATE4 echo. echo If the disk is write protected, move the write-protect tab. echo If the disk is bad, use another disk. echo Or did you eject the disk or press Ctrl+C? echo. choice /c:rq/n/t:q,99 "Enter R to Retry or Q to Quit and return to the menu: " if errorlevel 2 goto MENU if errorlevel 1 goto CREATE :CREATE4 echo. xcopy /Y c:\windows\Command\EBD\io.sys a:\ echo. xcopy /Y c:\windows\Command\EBD\command.com a:\ echo. echo Copying echo AUTOEXEC.BAT and CONFIG.SYS echo @echo off>>a:\autoexec.bat echo ctty nul>>a:\autoexec.bat echo doskey /insert /bufsize=4096>>a:\autoexec.bat echo ctty con>>a:\autoexec.bat echo c:>>a:\autoexec.bat if exist c:\RenMan.s4 goto CREATE5 deltree /y c:\RenMan.s4>nul echo if exist c:\delindex.bat c:\delindex.bat run>>a:\autoexec.bat echo if exist a:\delindex.bat a:\delindex.bat run>>a:\autoexec.bat echo cls>>a:\autoexec.bat echo echo.>>a:\autoexec.bat echo echo  Oops! DELINDEX is not on C:\ or A:\ >>a:\autoexec.bat goto DONE :: :CREATE5 deltree /y c:\RenMan.s4>nul echo cls>>a:\autoexec.bat echo echo.>>a:\autoexec.bat echo echo Do you want to run DELINDEX?>>a:\autoexec.bat echo echo.>>a:\autoexec.bat echo echo Enter D for DELINDEX Start Screen>>a:\autoexec.bat echo echo Enter R to Run DELINDEX immediately, without user input>>a:\autoexec.bat echo echo Enter Q to Quit if you do NOT want to run DELINDEX>>a:\autoexec.bat echo echo.>>a:\autoexec.bat echo choice /C:qdr/N/T:q,99 " Enter D, R, or Q: ">>a:\autoexec.bat echo if errorlevel 3 if exist c:\delindex.bat c:\delindex.bat run>>a:\autoexec.bat echo if errorlevel 3 if exist a:\delindex.bat a:\delindex.bat run>>a:\autoexec.bat echo if errorlevel 2 if exist c:\delindex.bat c:\delindex.bat>>a:\autoexec.bat echo if errorlevel 2 if exist a:\delindex.bat a:\delindex.bat>>a:\autoexec.bat echo cls>>a:\autoexec.bat echo echo.>>a:\autoexec.bat echo if errorlevel 2 echo  Oops! DELINDEX is not on C:\ or A:\ >>a:\autoexec.bat :DONE echo devicehigh=c:\windows\command\ansi.sys>>a:\config.sys :: cls echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º CONGRATULATIONS! You now have a "Superfast" StartUp disk º echo º configured to run DELINDEX when you reboot. Please label it. º :BOTLN echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo. if exist c:\RenMan.e2 goto B4X pause goto MENU :: :: :: END OF CREATE SECTION :: :: :B4X if exist c:\RenMan.c2 echo  if exist c:\RenMan.c2 if exist c:\RenMan.e2 echo  if not exist c:\RenMan.e2 cls deltree /y c:\RenMan.*>nul set path=%RenMan% set RenMan= :: :: :EXIT