-
Notifications
You must be signed in to change notification settings - Fork 10
Cookbook: Removing .Thumbs.db files from a directory
Using Windows Explorer to look at a directory that contains image files will generate a cache of image thumbnails with the filename .Thumbs.db. Unfortunately, by default Windows considers it a hidden file so you won't be able see it in Windows Explorer. But, it will be visible to MIK or other command-line utilities, which can lead to some unexpected and very unwanted results. There are two commands you can run to remove these files from a directory and all its child directories.
Using WindowsPowershell, from within the top-level directory, run:
Get-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force | Remove-Item -Force
Using the MS-DOS command prompt, from within the top-level directory, run:
del /s /q /f /a:h Thumbs.db
Also, MIK comes with a utility script that you can use to remove .Thumbs.db files and others as well.
Content on the Move to Islandora Kit wiki is licensed under a Creative Commons Attribution 4.0 International License.