topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 12:23 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IndexDotDatCleaner  (Read 2522 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
IndexDotDatCleaner
« on: November 19, 2011, 06:12 PM »
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.

; 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%
}