title: I found some code that shows/hides desktop icons, but it moves the icons in the process. How can I edit the code to not move the icons?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>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) </p>
  
  <p><strong><em>show.bat</em></strong></p>
  
  <pre><code>REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V HideIcons /T REG_DWORD /D 0 /F
  taskkill /f /im explorer.exe
  start explorer.exe
  </code></pre>
  
  <p><strong><em>hide.bat</em></strong></p>
  
  <pre><code>REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V HideIcons /T REG_DWORD /D 1 /F
  taskkill /f /im explorer.exe
  start explorer.exe
  </code></pre>
  
  <p>So <a href="http://imgur.com/a/CoAQ3" rel="nofollow">the code I found works fine but</a> 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.</p>
  
  <p>How can I one, get the batch files to show/hide icons more smoothly, and two, not move the icons around?</p>
  
  <p><em>PS: Just wanted to stress that I seriously have no idea how the code I found works, so you may have to ELI5.</em></p>