I'm using two batch files for Rainmeter, one to hide all icons and then launch Rainmeter, and another to show all icons and quit Rainmeter to make my desktop look normal again.
My end goal is to make these two batch files into buttons on my task bar that I can click to toggle the look of my desktop.
What I have so far is just the two batch files but all they do is show and hide desktop icons. (I found the code online because I couldn't write it myself)
show.bat
REG ADD "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /V HideIcons /T REG_DWORD /D 0 /F
taskkill /f /im explorer.exe start explorer.exe
hide.bat
REG ADD "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /V HideIcons /T REG_DWORD /D 1 /F
taskkill /f /im explorer.exe start explorer.exe
So the code I found works fine but a lot less smooth than just manually hiding desktop icons... The only problem is that when I run show.bat, my icons go back to a position that I don't want them in.
How can I one, get the batch files to show/hide icons more smoothly, and two, not move the icons around?
PS: Just wanted to stress that I seriously have no idea how the code I found works, so you may have to ELI5.
