Sometimes, Windows will display incorrect or blank icons on the Windows Desktop or within folders. This often happens if an icon is changed as part of a software update, where Windows will continue displaying the old icon instead of the new one.
For instance, if Maitre'D was upgraded from an older version to the very latest version, you may notice that the Maitre'D Back-Office shortcuts and program files are still using the original icons while they should have been upgraded starting with Maitre'D version 7.08.000.240.
Old Icon
Latest Icon
This happens because Microsoft Windows uses a temporary database called an Icon Cache to speed up the display process for icons. When Windows File Explorer needs to display an icon, it first looks up this database, and if a corresponding icon is found there, this is the icon that gets displayed. Thus, if a shortcut or an executable is updated after the original icon was stored in this icon cache, the old icon will most likely continue to be displayed for some time.
To resolve this issue, the Windows Icon Cache needs to be deleted and rebuilt. Here is how to proceed:
IMPORTANT! This solution involves using the Windows Command Prompt with Administrative privileges to delete files. While following this procedure will fix the issue discussed in this article, using these instructions incorrectly could cause irreversible damage. Use at your own risks.
Open an elevated command prompt by clicking the Windows Start menu and typing "CMD". Select the Run as Administrator option.
You may get a UAC warning. Click Yes.>
The command prompt will open at the C:\Windows\System32> prompt. Jump to the root of the C:\ drive by typing the following command:
cd\ [ENTER]
Navigate to the icon cache folder by typing the following command at the C:\> prompt:
cd %localappdata%\microsoft\windows\explorer [ENTER]
The prompt will change to:
C:\Users\[YourUserName]\AppData\Local\Microsoft\Windows\Explorer>
You can verify that you are in the correct folder by typing the following command:
dir [ENTER]
All the files within the folder will be listed.
We can see that about half of the file names in this folder start with "iconcache". This means we are in the right folder.
Now leave the command prompt window up on the screen, and close any other application or background tasks you may have running, including the Maitre'D Back-Office, Maitre'D Back-Office Server, POS workstation, etc. The only thing that should be running is the command prompt window.
Right-click the Windows Task Bar and select Task Manager.
If you only see the basic Task Manager window, click the More details down-arrow.
In the Processes tab, scroll all the way down to the Windows Explorer process. Right-Click the Windows Explorer process, and select the End Task option.
The entire screen will turn blank, except for the command prompt window and the Task Manager window. Now close the Task Manager window, so that there is nothing but the command prompt window up on the screen.
Now, delete all the files that start with "iconcache" in their file name. This can be done by typing the following command at the command prompt:
del iconcache* [ENTER]
NOTE: If you get "Access Denied" error messages after running this command, it means some application or process is locking up the files. Close any open program and try again.
If all went well, it will look like nothing happened. Seeing no error message means that the command worked as intended. We can verify this by listing the contents of the folder with the dir command again:
dir [ENTER]
All the files within the folder will be listed. This time, you will notice that all the "iconcache" files listed earlier are now missing. This is exactly what we want.
Close the command prompt window by clicking the "X" in the upper-right corner.
On your keyboard, press CTRL + ALT + DEL simultaneously. On the menu that appears on your screen, click Sign out. This will bring you to the Windows sign on screen.
Sign on with your usual username and password.
Now that the icon cache database files have been deleted, Windows will automatically rebuild the icon cache database from scratch. This will force the new icons to be used, as all remnants of old icons were forcibly deleted.
NOTE: Attempting to delete the icon cache files directly from the File Explorer will not work, as they are constantly being accessed by the Windows Explorer process. This is why we need to use the command prompt after manually stopping the Windows Explorer process.