Windows 8 and 8.1 Forums

W8 keeps deleting thumbnail cache (changed folder permission)

  1. #51

    Posts : 32
    Arch x64 / Windows 8.1 Pro x64


      My System SpecsSystem Spec

  2. #52

    OK great I'll be using the scripts daily, thanks a lot!
      My System SpecsSystem Spec

  3. #53

    Posts : 6
    WIn 8.1 x64

    Det87's fix works great! I've been using it for two weeks, never have to wait for thumbnails to reload. Thanks again, Det87!
      My System SpecsSystem Spec

  4. #54

    Posts : 10
    Windows 8.1 Pro x64 Update 1

    For anyone (with a Pro copy of 8) wanting to automate the use of these scripts:
    1. Run gpedit.msc
    2. Computer Configuration>Windows Settings>Scripts (Startup/Shutdown)>Startup
    3. Add
    4. Script Name: %windir%\system32\cmd.exe
    Script Parameters: /c "%localappdata%\Microsoft\Windows\Restore Thumbnails.bat"
    (<-- Replace with the location of your "Restore Thumbnails.bat", quotes needed for filepaths with spaces)
    5. OK

    Repeat for Shutdown and "Backup Thumbnails.bat"
      My System SpecsSystem Spec

  5. #55

    Posts : 3
    Windows 8.1 Update 1

    Quote Originally Posted by Det87 View Post
    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):

    @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:

    @echo off
    :: Go to C:\Users\<Name>\AppData\Local\Microsoft\Windows\
    cd %LocalAppData%\Microsoft\Windows\
    :: Kill explorer.exe
    taskkill /im explorer.exe /f
    :: 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:
    Your scripts don't seem to work for me. The "Backup Thumbnails.bat" says "File not found - Explorer" when I run it, and the "Restore Thumbnails.bat" successfully kills and restarts "Explorer" but none of the files from "Explorer - Copy" are pasted into "Explorer". Copying and pasting the scripts directly into CMD works though.

    I tried replacing "<Name>" with "BR4DDERS" as well but that didn't work.

    Any help would be appreciated.
      My System SpecsSystem Spec

  6. #56

    Posts : 32
    Arch x64 / Windows 8.1 Pro x64

    Well, the lines beginning with "::" are simply comments, and the actual work is below them, but I take it you're not using Windows 8?

    If you are, then, for some reason, you don't have the Explorer folder in %LocalAppData%\Microsoft\Windows\ (C:\Users\BR4DDERS\AppData\Local\Microsoft\Windows\).
      My System SpecsSystem Spec

  7. #57

    Posts : 12
    Windows 8.1 Pro x64


    ....... is it necessary to apply the Folder Permissions suggested by David Bailey before using the scripts, or is it good to go with just using the scripts ?
      My System SpecsSystem Spec

  8. #58

    Posts : 32
    Arch x64 / Windows 8.1 Pro x64

    No, they don't do anything on W8, and might actually prevent the scripts from working (although temporarily).
      My System SpecsSystem Spec

  9. #59

    Posts : 12
    Windows 8.1 Pro x64


    ....... thanks a lot for these 2 very useful scripts you wrote !!!

    Before your reply I tried it already with having the "Folder Permissions" set to their default values and and it seems to work.

    The only thing I haven't tried is to enable the "Automated Maintenance Tasks" again - Does it make a difference if they're enabled or not ?

    I converted the Backup Thumbnails.bat to Backup Thumbnails.exe and have it run automatically on shutdown, same goes for the Restore Thumbnails.bat and as an .exe it doesn't give me the blue screen after startup.

    Thumbnail Cache is now at about 350 MB and hopefully everything will be fine when I really go to increase it.

    I'll let you guys know in a week or two.

    This is going on for years now and you're the 1st who came up with an acceptable solution.

    Great work and thanks again for sharing .......

    ....... blue screen still appears, but it doesn't interrupt the "Metro Start Screen", it just flashes for a split second when changing from Metro to Desktop.

    Hope it keeps working like this in the future .......
    Last edited by tommygun; 13 Aug 2014 at 10:43.
      My System SpecsSystem Spec

  10. #60


    Changing folder permissions and disabling automatic maintenance didn't do anything for me. Changing those parameters might seem to work only because it isn't time for Windows to clear out the cache yet. So it'll look like it's working for the first couple of days. Det87's scripts are the only ones that work. Also, I would against running the scripts automatically. Let's say your computer has cleared out the cache and you want to restart. On shutdown the backup script will actually backup your "explorer" folder that's just been cleared. So now if you run the restore script on startup, you will restore your "explorer" folder with nothing. I suggest running the scripts manually.
      My System SpecsSystem Spec

Page 6 of 12 FirstFirst ... 45678 ... LastLast
W8 keeps deleting thumbnail cache (changed folder permission)
Related Threads I'm at a complete loss as to why a random image has associated itself to my Windows folder. What is more frustrating is that there seems to be no way to remove it, as the Windows folder's properties menu doesn't have a "Customize" tab that allows you to reset a...
I've recently changed to Windows 8.1 and honestly don't think it's as bad as people make out, clearly not as user friendly as Windows 7, but hey ho. Anyway, I have a number of folders on my hard-drives and I want to put a preview pic on them so I know exactly what they are, however when I Right...
Hi guys, I've had this problem since I got a new laptop with Windows 8.1: The thumbnail cache resets. I've tried the methods outlined here: Prevent Windows 8 File Explorer From Deleting Image Thumbnail Cache Thumbnail Cache Automatic Deletion Problem in Windows - AskVG Basically I disabled...
hey i gat the same proble can you sove this plzzz. 41736 i have create a new user acc. in my pc and use it and then i shut down my pc. next day my old acc. was lost and all data within it was not opening. 41738 here mayur is my old user name account while mayur_000 is anew one.
Dear Brains, On the other Windows PCs I've used, there has always been a small thumbnail at the bottom of the window showing details of the item/photo selected, but with Window 8, this is missing. Some details are there, but they are not easy to take in at a glance and I really miss the...
Every time I turn my laptop on, I lose my thumbnails and it has to reload them. Seriously frustrating. I've tried today to go through a few refreshes/reinstalls, and I'll occasionally be able to keep them, but then I just start losing them again. I've seen a few mentions of this - another thread...
My xp laptop had recently crash, but the my hard drive is still intact. I have a windows 8 computer now and I am trying to transfer the memory, but when I try to access the xp hard drive from windows 8 computer, I cannot access it. I get the "You don't currently have permission to access this...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook