DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IndexDotDatCleaner  (Read 3,202 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
IndexDotDatCleaner
« on: November 20, 2011, 12:12 AM »
Here's an AHK script to delete all index.dat files on the system partition. It should only be run using Windows Registry RunOnce Key.  See my RunItOnce for a simple way of setting that up.

Code
; IndexDotDatCleaner to delete all index.dat files on system
; partition. Should only be run via RunOnce key in Registry
; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
;
; (See my RunItOnce program for a convenient way to add it.)
;
; It searches the entire partition for index.dat files.  It will slow
; down the boot.  It should only be used occasionally to clean them all out.
;
; MilesAhead
;
#NoTrayIcon
stringleft,sysdrive,A_WinDir,3
SetWorkingDir,%sysdrive%
Loop,index.dat,,1
{
	FileDelete,%A_LoopFileFullPath%
}

Original address: https://www.donationcoder.com/forum/index.php?topic=28734.0