title: Delete a file named "NUL" on Windows
body: <p>I ran a program on Windows 7 that was compiled under Cygwin and passed "NUL" as an output file name. Instead of suppressing output it actually created a file named "NUL" in the current directory. (Apparently it expects "/dev/null", even on Windows.) Now I'm stuck with this "NUL" file that I cannot delete!</p>
  
  <p>I've already tried:</p>
  
  <ul>
  <li>Windows Explorer - error: "Invalid MS-DOS function" (yes, that is seriously what it says!)</li>
  <li>Command prompt using "del NUL" - error: "The filename, directory name, or volume
  label syntax is incorrect."</li>
  <li>Deleting the entire directory - same deal as just deleting the file</li>
  <li><code>remove()</code> in a C program - also fails</li>
  </ul>
  
  <p>How can I get rid of these NUL files (I have several by now), short of installing the full Cygwin environment and compiling a C program under Cygwin to do it?</p>