Restore your desktop when the icons get “rearranged”.
Melba23 and I found we were working on very similar ideas to restore the Desktop icons to their normal place if they became “rearranged”. Vista seems to like this doing on occasion just for fun – but we all know some applications and games which change the display resolution or move icons around. This annoys “tidy” people who like their desktops arranged “just so” – I am particularly thinking of this desktop when I say that! ![]()
We combined efforts and here is the result of our labors.
Operation is easy – press “Save” to store a particular configuration and “Restore” to reset the icons to the saved positions in the selected configuration file. “Delete” allows you to remove unwanted configuration files from the list. There is a command line option so that the restoration can be run via HotKeys if required (that is why the script warns that it should be compiled for full functionality). You can decide what to do with any icons that have been added since you last saved the configuration file – the default is to put them in the top-left corner, but you can also banish them way off-screen or, more sensibly, specify a location for them.
A new feature as of ICU v3.4 is the optional Desktop Contextmenu Integration (DCI) for Win7 (Win7 only because Microsoft implemented an easy way to do this through the registry as of this release).

Used AutoIt Versions
- AU 3.3.2.0 up to ICU 2.3
- AU 3.3.6.0 up to ICU 2.4
- AU 3.3.6.1 up to ICU 3.4
- AU 3.3.8.0
Version 3.1 should fix the UAC prompt bug
Version 3.3 should fix the empty save file bug
Version 3.4 Win7: Admin rights no longer needed for DCI

![]() | ![]() |
It works fine at least on the XP SP3, Vista and Win7 machines I tested it on. If you find bugs please let me know.
Kudos to: Ascend4nt, Melba23, Prog@ndy, & Valik for parts of the code.
Please let me know if you found some piece of code in the source for which I forgot to mention a credit.
Disclaimer
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY
The Author of this Software expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT and any related documentation is provided “as is” without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchantability, fitness for a particular purpose, or non-infringement. The entire risk arising out of use or performance of the SOFTWARE PRODUCT remains with you.
NO LIABILITY FOR DAMAGES
In no event shall the author of this Software be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the Author of this Software has been advised of the possibility of such damages. Because some states/jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.



(9 votes, average: 4.56 out of 5)






One solution for deleted shortcuts: Just copy all the shortcuts on your desktop to a storage folder. If any are deleted (either by the system or yourself) just copy them back to the desktop. Then use ICU to place them in their original positions.
Well, my marvelous Win7x64 system wiped my icons created by “Send to Desktop” (weekly occurrence), so i executed ICU to restore from a saved copy, and got nothing. Almost like they had been deleted from that copy, also. Re-created the icons, did a SAVE w/ ICU, then deliberately moved icons around, did a RESTORE w/ ICU, and everything was back where it belonged. Q#1: is there any way to inspect an .icf file? Q#2; has anyone figured out how to prevent Big Brother from deleting icons it doesn’t like? Is there a bit somewhere in the registry that i could flip?
Hello K,
A#1: The .icf file is a plain text file, just open it with a text-editor of your choice. The [Data] section contains general info on the save file, the [Desktop] section contains the “icon name = x:y save position”, one per line and the icon names are encoded to ensure unicode support.
A#2: That behavior does not occur on my Win7-64 bit system. Search the web for similar error descriptions, a quick google search brought these article up for me:
http://forums.techguy.org/windows-xp/442273-unused-desktop-popup-annoyance.html
http://www.sevenforums.com/customization/176924-invalid-desktop-shortcuts-deleted.html
Best Regards
Karsten
Thanks! This will be used once a week when Windows deletes all my “send to desktop” created shortcuts.
Thanks for the solution KaFu!
I did the tinkering and it works on 200,000 and 200,100 and so on!
Great, good to hear and thanks for the feedback
!
This is just superb.
Please help me though with a small problem:
when i restore with the option to put the new icons in “ask per icon” mode how does the x,y thing work? lets say i want to put them (on a imaginary grid of my desktop) on 3rd column and 1st row… i tried 3,1 and 1,3 and 3,0 and 0,3… the new icon only moves either at the top left of the screen or 1 row below it… please help…
Hi Justin,
glad you like it
. The “Ask per Icon” coordinates are relative to your resolution and the icon size displayed, e.g. I have a screen resolution of 1440×900 and an Icon size of 48. With “Align to Grid” activated my display shows 15 x 9 icons total. So if you want to move an icon to the second column and second row you have to do some math / try & error. Something like 100,100 should move the icon to that position. Please note that I just realized that if the “Auto Arrange” option is turned on, ICU will fail as Windows will enforce the icon arrangement.
Regards
Karsten
Hi, I have 2 Q:
1. How do I remove ICU (registry entries)?
2. Where is the shortcut that’s “created in the Programs directory on saving a layout”?
Edit:
Never mind, I downloaded the source and that told me all I needed to know.
1. Press “Uninstall” in the program itself (or take a look at the source for the registry keys themselves
2. In the directory where the icu.exe is located
Glad you’ve found the answers yourself in the source
…
Unluckily I am still experiencing the same empty-conf-file problem occurring in v3.2. On a 64bit winXP it’s all OK while on some 32bit winXP machines I have tested it on it simply stops working… randomly!
Works just fine but can you tell me how to uninstall this program and remove the registry entries. I want to remove it from my context menu.
many thanks.
/Muck
To add and remove ICU from the Desktop’s contextmenu on Win7 either UAC has to be turned off or ICU has to be started with elevated access rights (“run as admin”). If one of these conditions is met there should be a button “Uninstall” on the GUI which removes all entries in the registry.
Just found a method to add contextmenu also for unelevated programs, so this feature will be available with UAC enabled too as of the upcoming v3.4
.
Perfect!
Light, simple, flexible, takes no resources, works on Win 7 64-bit.
Best utility of its kind! Thanks!
A very useful utility! Thanks a lot!
very nice utility. well done!
Please tell me does this application use the registry?
Could this application be made to run from a flashdrive?
Many thanks for all your fine work.
The integration into the Desktop right-click contextmenu feature (DCI; on Win7 only) writes to the registry. ICU asks you on the first startup if you want to use this feature and you don’t have to. Otherwise it should run just fine from a flashdrive
.