Hi,
under Vista, i used to delete my Thumbnail Cache files :
AppData\Local\Microsoft\Windows\Explorer\thumbcach e_32.db
AppData\Local\Microsoft\Windows\Explorer\thumbcach e_96.db
AppData\Local\Microsoft\Windows\Explorer\thumbcach e_256.db
AppData\Local\Microsoft\Windows\Explorer\thumbcach e_1024.db
AppData\Local\Microsoft\Windows\Explorer\thumbcach e_idx.db
AppData\Local\Microsoft\Windows\Explorer\thumbcach e_sr.db
with the following Code:
Code:
if ( !DeleteFile( filesC.Item( i ) ) )
{
DWORD dwAttC = GetFileAttributes( filesC.Item( i ) );
dwAttC &= ~( FILE_ATTRIBUTE_READONLY );
SetFileAttributes( filesC.Item( i ), dwAttC );
DeleteFile( filesC.Item( i ) );
}
after restarting explorer.exe, those files are automatically regenerated.
Under Windows 7 this is not the case, those files are not deleted or regenerated even after restarting the system.
Am i missing something, or there is some way to notify explorer.exe to delete those files?
Thanks in advance.