title: batch script to delete all icons from all users' desktops
body: <p>Currently looking for a way to delete all icons off of all user desktops. I have experimented until I made the following script that allowed me to delete all from a single user but without hard coding I won't be able to extend this to reach all users on a single PC. </p>
  
  <pre><code>@echo off
  cd %%#
  del C:\Users\%Userprofile%\Desktop\*.* /s /q
  for /r %%# in (.) do rmdir %%# /s
  cls
  </code></pre>
  
  <p>I am now looking to see if it is possible to extend this to multiple users without hard coding paths since I don't happen to know which user might be using the computer at the time.</p>