On Windows, you can easily rearrange icons by moving them around. People prefer to have the icons that are frequently used towards the top. But some may hate the whole idea of rearranging icons with mouse drags. Sometimes, it can be a predicament too. For example you have a Zip file on your desktop and while arranging icons, if you happen to drag another icon onto the zip, the file gets zipped into the same Zip archive. This can be annoying and happens many a times. Here’s a trick that will keep the desktop icons from rearranging themselves on Windows.
To prevent the desktop icons from rearranging, you’ll need to begin by creating a file on notepad and using it as a registry file. Open a blank file on notepad and paste the following piece of code into it.
Windows Registry Editor Version 5.00
Now click on File>Save as on Notepad. From the “Save As Type” option, choose “All files”. Now give any name to the file and save it with a “.reg” extension; for example “desktopicons.reg”. Make sure to save the file to the desktop. Now open the file with Registry Editor from Right click>Open With>Registry Editor and add it to your registry. This will do the trick and once you reboot your computer, the icons on desktop will be locked and won’t move or rearrange with mouse drags.