Windows 8 and 8.1 Forums


W8 keeps deleting thumbnail cache (changed folder permission)

  1. #41


    Posts : 32
    Arch x64 / Windows 8.1 Pro x64


    I use it daily. I also wrote a script to backup the thumbnails, because I was getting tired of manually opening the location.

      My System SpecsSystem Spec

  2. #42


    Posts : 6
    WIn 8.1 x64


    Would you mind sharing that script as well?
      My System SpecsSystem Spec

  3. #43


    Posts : 6
    WIn 8.1 x64


    Also, excuse my ignorance, but what do you do with copy of the thumbnail folder that you create before shutting down?

    Also, thanks for sharing your expertise!
      My System SpecsSystem Spec

  4. #44


    Posts : 32
    Arch x64 / Windows 8.1 Pro x64


    I'm not sure what you mean by that, but this one creates the backups for the other script to restore on startup:

    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
    When you run it right before shutting down, you preserve all the additional thumbnails created on that boot.
      My System SpecsSystem Spec

  5. #45


    Posts : 6
    WIn 8.1 x64


    Thank you! It may be moot with your script, but I what I was asking earlier was where do you save the copy of the thumbnail folder that you create? In the same directory as the original?
      My System SpecsSystem Spec

  6. #46


    Posts : 32
    Arch x64 / Windows 8.1 Pro x64


    Ah, yes. As "Explorer - Copy", as that's the default naming you get with Explorer, and I wanted to preserve that.

    Both located in "%LocalAppData%\Microsoft\Windows" (C:\Users\<name>\AppData\Local\Microsoft\Windows).
      My System SpecsSystem Spec

  7. #47


    Posts : 6
    WIn 8.1 x64


    Thank you!
      My System SpecsSystem Spec

  8. #48


    Hi Det87, I was wondering if your method can salvage reset thumbnails? What I mean is that for example, I restarted my computer, all my thumbnails are copied somewhere. In the middle of the day, the thumbnail cache reset for still-unknown reasons. Now, if I want to rebuild the thumbnail cache without opening every folder, do I just restart my computer and let it rebuild the cache from the copied thumbnail file at startup? Is that correct? That's my understanding of how your script works, thank you.
      My System SpecsSystem Spec

  9. #49


    Posts : 32
    Arch x64 / Windows 8.1 Pro x64


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

    Click image for larger version

    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
    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:
    W8 keeps deleting thumbnail cache (changed folder permission) Attached Files
      My System SpecsSystem Spec

  10. #50


    OK that makes sense. So essentially, I run the backup.bat to make the "explorer - copy" folder that has the cache at that moment, and run restore.bat to replace the content of the "explorer" folder with whatever was in the "explorer - copy" folder. So if for some reason my cache in explorer folder gets reset for whatever reason, I can just run the restore.bat to repopulate the cache with the backup.
      My System SpecsSystem Spec

Page 5 of 12 FirstFirst ... 34567 ... LastLast
W8 keeps deleting thumbnail cache (changed folder permission)
Related Threads
http://i.imgur.com/MdOgMNO.png 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