Tag Archives: desktop icons

How to keep desktop icons from moving by running Icon Shepherd from command line

Get Icon Shepherd:
Free Download

Icon Shepherd is compatible with Windows 10 Icon Shepherd is compatible with Windows 11



Not sure how to download?

You probably already know how to use Icon Shepherd: when you install it on your computer, it adds its icon to the taskbar notification area, and you click on that icon with the mouse and use the commands on the menu to remember the positions of the icons on the desktop, and restore them when Windows messes them up.

That's how most people would use Icon Shepherd, but you might be wondering is there a way not to have IconShepherd running in the background all the time and only run it on demand, when you actually need to save the icon positions or restore them? Even though Icon Shepherd uses a minuscule amount of RAM and a very small number of CPU cycles to do its work, still wouldn't it be nice not to keep it running all the time?

If you've been thinking about it (and who wouldn't?), you may be pleased to know that starting with version 21.8 of Icon Shepherd it's possible to run it on demand, by providing appropriate command line arguments to direct it what to do. You could run such commands by entering them into the Windows command prompt, or into the Windows Run box (that you can open by pressing the Win+R keys). Or, you may want to create two shortcuts on your desktop, one to store the current positions of the desktop icons, and another one to restore them. This way, you would launch such shortcuts, when needed, without having to run Icon Shepherd in the background.

Specifically, let's create a shortcut to store the icons positions. Right-click on an empty spot of your desktop and choose New - Shortcut from the menu. When the Windows asks you about the location of the item, press Browse, navigate to folder where Icon Shepherd files are installed (which is usually C:\Program Files\IconShepherd) and select the executable file there, such as ISEXE32, ISEXE64, or ISEXEA64, depending on your edition of Windows.) Before you press Next, first verify that the path to the executable is enclosed in double quotes, and second, append a space and the command line argument /Store:"My Icons" to it:

Icon Shepherd shortcut to store desktop icons

Now press Next and enter a name for the shortcut, for example Store My Icons: (this name will be displayed on your desktop)

Icon Shepherd shortcut to store desktop icons

That takes care of the shortcut to store the icons. Now create another desktop shortcut, in the same way, but this time enter the command line argument as /Restore:"My Icons", and enter the name for the shortcut as Restore My Icons.

Encrypt and password-protect external drives with USBCrypt Encrypt and password-protect external drives with USBCrypt encryption software for Windows 11,10,8.

User rating: User rating 4.7/5

Purchase or download a free trial. Read more...

Note that you can choose a different name in place of "My Icons", but it must be the same for the /Store and /Restore command line arguments.

Now you should have two shortcuts on your desktop, one named Store My Icons and the other one named Restore My Icons. Use the first shortcut whenever you need to store the current icon positions. Use the second one when you need to restore the icon positions at a later time.

Finally, since you no longer need Icon Shepherd to run in the background, open its Options screen (by clicking on its taskbar icon and choosing Options from the menu) and deselect the option Auto-start IconShepherd when Windows starts. This way, next time you log in to Windows, Icon Shepherd will not start automatically:

Changing the option to auto-start IconShepherd when Windows starts

Happy computing!

Read more

How to repair Windows desktop icons with AB Commander

Take control of your files and folders with AB Commander Take control of your files and folders with AB Commander file manager for Windows 11, 10, 8.

User rating: User rating 4.8/5

Purchase or download a free trial. Read more...

Sometimes something happens and Windows starts displaying wrong icons on the desktop. For example, you might have upgraded an application and the new version came with a new and improved application icon, but you still see the old icon on the Desktop. Or, a blank or damaged icon image appears where a perfectly good icon was displayed before. Does this sound familiar?

The most common reason for the problem with the icons is the corruption of the Windows icon cache. If you don't know what icon cache is, it's a special file that Windows uses to keep copies of each icon handy. When Windows needs to draw an icon, it uses the copy from the cache rather than retrieving the icon image from the original application file. It makes Windows draw the icons much faster.

UPDATE: With the release of Windows 8, Microsoft changed the rules of the game: the icon cache is no longer stored in the IconCache.db file described below. Read more: How to repair the icon cache in Windows 8/8.1

The location of the icon cache file depends on the version of Windows that you have. In Windows 7 and Vista, the icon cache file is:

C:\Users\User\AppData\Local\IconCache.db

In Windows XP the icon cache file is:

C:\Documents and Settings\User\Local Settings\Application Data\IconCache.db

So, what to do if the icon cache file became corrupted or damaged, or if Windows did not replace a copy of an icon in the icon cache with a new image of the icon for some reason? The solution is simple: you need to force Windows to rebuild its icon cache! The easiest ways of doing that is by deleting the IconCache.db file. If that file is missing, Windows will build it from scratch. However, deleting this file is tricky: it turns out that Windows keeps a copy of this file in the RAM memory, and if you delete it, with will create a new copy of this file from it's RAM copy, without refreshing the icon images!

To prevent Windows Explorer from recreating the old icon cache file, you can do the following:

1. If you have not done so already, make Windows display the hidden files and folders. To do so, choose the Folder options command from the Tools menu of AB Commander (or open it from Windows Control Panel), select the View tab, and change the option:

Make Windows display the hidden files and folders

If you don't like Windows displaying the hidden files and folder, you can change this option back after completing the steps below.

2. Use AB Commander to navigate to the folder where the IconCache.db file is located (see above for the possible locations):

Locate the icon cache file with AB Commander

(If you have just enabled the Show hidden files option, you may need to press F5 in AB Commander to refresh is window and make the hidden files and folders to appear in the file listings.) Delete the IconCache.db file, and keep AB Commander window open, do not close or minimize it, you will need it a bit later.

3. Now end the Windows Explorer process. To do that, start Windows Task Manager (by, for example, right-clicking on an empty space of Windows taskbar and selecting Start Task Manager from the menu). Select the Processes tab and right-click on explorer.exe in the list. Finally, select End Process from the menu:

Use Task Manager to end Windows Explorer process

The icons on your desktop will disappear, but don't panic, they will be back in a minute!

4. Finally, restart the Explorer process. To do that, switch to AB Commander window, enter explorer in its launch box, and press OK:

Start Explorer with AB Commander

Take control of your files and folders with AB Commander Take control of your files and folders with AB Commander file manager for Windows 11, 10, 8.

User rating: User rating 4.8/5

Purchase or download a free trial. Read more...

(You could also start Explorer using the File - New Task (Run) command of Windows Task Manager.) Your desktop icons should be back.

The above procedure should force Windows to recreate its icon cache file from scratch. If you don't see the IconCache.db file right away, don't worry, it will appear after you log off and log back on to (or restart) Windows.

UPDATE: If you use Windows 8 (or newer) the above procedure may not work. In such a case, you need to use a different procedure. Read more: How to repair the icon cache in Windows 8/8.1

If you want to link to this article, you can use this HTML code: <a href="http://www.winability.com/repair-windows-desktop-icon-cache/">How to repair Windows desktop icons</a>

More information