How to Refresh Thumbnails of Folder Shortcuts (.lnk)

When you create a desktop shortcut to a folder, the folder shortcut thumbnail icon reflects what was in the folder it points to at creation. Later, when you add or remove files to the target folder, the folder thumbnails get updated dynamically, but the folder shortcut thumbnails remain the same. Even pressing F5 does not refresh the folder shortcut thumbs.

folder shortcut thumbnails not refreshing

As you may have known, you can refresh the folder shortcut thumbnails by clearing and rebuilding the thumbnail cache. But here’s a simpler script solution to refresh the folder shortcut thumbnails without rebuilding the thumbnails cache.

Let’s discuss the script below.

Refresh Thumbnails of Folder Shortcuts

  1. Download the RefreshShortcuts script via GitHub.
  2. Unzip and extract it to a folder — e.g., D:\Scripts
  3. Run the script. It refreshes the thumbnails of folder shortcuts located on your desktop.
    folder shortcut thumbnails refresh using script

    You can also run the script as a scheduled task or Startup item.

    Additional Tip

    You can also pass one or more folder paths as arguments. For example:

    wscript.exe "D:\Scripts\RefreshShortcuts.vbs" "D:\Documents"

    The above command-line will refresh all .lnk files in your D:\Documents folder.

    wscript.exe "D:\Scripts\RefreshShortcuts.vbs" "D:\Documents" "D:\Statements"

    The above command-line will refresh the thumbnails of all folder shortcut (.lnk) files located in your “D:\Documents” and “D:\Statements” folders.

    Note: If you don’t pass any arguments and simply double-click the script or run RefreshShortcuts.vbs, it refreshes the folder shortcut thumbnails on the desktop.


Script code



If you can’t see the script’s contents above, visit the following GitHub link to view and download the script.

Refresh thumbnails of folder shortcuts (.lnk):
https://gist.github.com/winhelponline/f441778cfefb0e4a74768a3291b79f3e


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Comment