title: In a windows batch file, getting "The filename, directory name, or volume label syntax is incorrect."
body: <p>I want to use the current time as the title of an output file, like this:</p>
  
  <pre><code>set NAME=%TIME%
  </code></pre>
  
  <p>Then I want to write to the file, like this:</p>
  
  <pre><code>echo words &gt;&gt; %NAME%
  </code></pre>
  
  <p>However, when I try to do so, it gives this error:</p>
  
  <blockquote>
    <p><em>The filename, directory name, or volume label syntax is incorrect.</em></p>
  </blockquote>
  
  <p>What am I doing wrong?</p>