# W8 keeps deleting thumbnail cache (changed folder permission)

1. Responding from my new Windows 10 system after an about 20 minute upgrade. Unfortunately, it took out the Explorer backup on the go (even the one in Windows.old), so gonna have to recreate it.

Anyway, to clarify, I'm talking about the video and image thumbnail preview sizes in Explorer (the default choices being Extra large icons, Large icons, Medium icons, etc.) - that is, whether it will be the same thumbcache_*.db both are saved into.

If you have all of them in the same preview sizes, then that's just weird.

My System Specs

2. Oh okay, I didn't check which file's which, just the total size of explorer folder.
My System Specs

3. Det87's scripts have been working for me just fine. However, every once in a while windows would still delete the cache if I left my computer idle for long periods of time, and then during shutdown the backup.bat file would pretty much be pointless.

I still use the restore.bat file on system startup to replace the explorer thumbnails by copying from "Explorer - Copy" to "Explorer", but for backing up existing thumbnails I have been using FreeFileSync.

Using FreeFileSync's RealtimeSync, I have it set to copy only updated files, deleting nothing. It does this in real time. Even if Windows, disk cleanup, or any third party utility deletes the cache, the changes are not reflected in the "Explorer - Copy" folder, so a simple system reboot restores all the thumbs!

I have over 30 GB of images, totaling in well over 40,000. My thumbs for these files might disappear, but a restart always brings them back.

Hope this helps some people.
My System Specs

4. Can you tell me how exactly do you set freefilesync up?
My System Specs

5. I was wondering, is there a reason why executing the restoration script as an administrator breaks any shell i'm using? I've tested with both StartIsBack and Classic Shell on Windows 8.1. If I don't use Disk Cleanup to remove my thumbnails before restoring them, then within a day, the ThumbCacheToDelete folder shows up and the restore script stops working. I can make it work by running it as an administrator, but again, it breaks my shell and leaves me stuck with the standard Windows 8.1 experience(no start menu). Is there any way to have my computer automatically delete my thumbnails when I shut down so I don't have my thumbnails disappear while i'm using my computer?

Originally Posted by LoliHunter
Det87's scripts have been working for me just fine. However, every once in a while windows would still delete the cache if I left my computer idle for long periods of time, and then during shutdown the backup.bat file would pretty much be pointless.

I still use the restore.bat file on system startup to replace the explorer thumbnails by copying from "Explorer - Copy" to "Explorer", but for backing up existing thumbnails I have been using FreeFileSync.

Using FreeFileSync's RealtimeSync, I have it set to copy only updated files, deleting nothing. It does this in real time. Even if Windows, disk cleanup, or any third party utility deletes the cache, the changes are not reflected in the "Explorer - Copy" folder, so a simple system reboot restores all the thumbs!

I have over 30 GB of images, totaling in well over 40,000. My thumbs for these files might disappear, but a restart always brings them back.

Hope this helps some people.
Could you give a quick rundown on how to perform this? Thanks.
My System Specs

6. Originally Posted by windows8thumba
Is MS even aware of the thumbnail problem? This is 2014!
Originally Posted by Det87
I think they are, but the "solution" has virtually never been helpful.
Perhaps if you guys are trying the windows 10 tech preview, try to mention it via the feedback app. I've looked through the app, but of course the options under "File Explorer" are limited. So there's no good place to put it. But let us know if you make the feedback (and where in the app to look), and hopefully the members in this forum will "me too" it.
My System Specs

7. Control panel-Indexing-modify-add folder with pictures to the index folder and wait until indexing is complete, reboot and everything is resolved
My System Specs

8. Originally Posted by soryn11
Control panel-Indexing-modify-add folder with pictures to the index folder and wait until indexing is complete, reboot and everything is resolved
I checked and my picture locations are indexed by default, so nothing's changed.
My System Specs

9. Originally Posted by Det87
I'll try to explain this a bit better. When the specific thumbnail databases exceed the allotted size (I think something like 50MB), they are moved to the ThumbCacheToDelete subfolder as "thmXXXX.tmp", and new empty .db's are created in their place. When the system boots up, the ThumbCacheToDelete ​folder is removed.

Here's an overview of the location (C:\Users\<name>\AppData\Local\Microsoft\Windows\Explorer or %LocalAppData%\Microsoft\Windows\Explorer):

Attachment 47416

My backup script essentially does the same as going to C:\Users\<name>\AppData\Local\Microsoft\Windows and copy+pasting the Explorer folder in the same directory (resulting in Explorer - Copy):

Code:
@echo off

:: Go to C:\Users\<Name>\AppData\Local\Microsoft\Windows\
cd %LocalAppData%\Microsoft\Windows\

:: Remove previous "Explorer - Copy" backup (2>nul: ignore directory doesn't exist)
rd "Explorer - Copy" /s/q 2>nul

:: Create new one (echo d: copy a directory)
echo d | xcopy Explorer "Explorer - Copy" /y/s/q
The restoration script kills explorer.exe to remove the locks from the thumbnails, restores them from Explorer - Copy, and restarts explorer.exe:

Code:
@echo off

:: Go to C:\Users\<Name>\AppData\Local\Microsoft\Windows\
cd %LocalAppData%\Microsoft\Windows\

:: Kill explorer.exe

:: Copy thumbnails from "Explorer - Copy"
xcopy "Explorer - Copy\thumbcache_*.*" "Explorer\" /q/y

:: Restart explorer.exe with "start" to auto-close CMD window
start explorer.exe
Attachments below:

Thanks for this wonderful solution. It works.
Can you modify a little bit?
I have tons of pics and my explorer folder is little bit bulky and I am using SSD.
Is this possible to change the backup copy saved to some other drive instead of C?

Thanks
My System Specs

10. Btw, to have the scripts run silent (no CMD window popping up), use the following VBScript and save it with the .vbs extension:

Code:
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "C:\Path\to\the.bat" & Chr(34), 0
Set WshShell = Nothing
Attached:
My System Specs

Page 10 of 12 First ... 89101112 Last
W8 keeps deleting thumbnail cache (changed folder permission)