title: Deleting all files and directories from desktop except .lnk
body: <p>Im trying to write a script for keep clear my desktop. I want to delete all files and directories except the shortcuts.I use Windows 10. My batch code is the following:</p>
  
  <pre><code>@echo off
  COLOR 0E
  cd "C:/Users/DA/Desktop"
  FORFILES /S /C "if @ext!=lnk del /F /Q /S"
  rd /S /Q "."
  pause
  exit
  </code></pre>
  
  <p>Maybe it is a dumb error, but Im a newbie in Windows command line. Thanks in advance.</p>