title: Batch script for hiding desktop icons
body: <p>I'm trying to make a script that hides some icons on desktop. When I run it line by line in command promt it works, but when I run the *.bat file in cmd it says "attributesi was unexpected at this time."
  Here is the code:</p>
  
  <pre><code>set address=file.ext
  set attributes=attrib %address%
  for /F "tokens=*" %i in ("%attributes%") do set var=%i
  set var=%var: =%
  if %var:~1,1%==H (attrib -H %address%)else (attrib +H %address%)
  </code></pre>