title: I can't auto answer yes in batch file
body: <p>I create batch file like this in <strong>Windows7</strong> but it can't delete file.</p>
  
  <pre><code>echo y | DEL autorun.inf
  echo y | DEL autorun.ini
  </code></pre>
  
  <p>when I run this code it show like this but not delete any file.</p>
  
  <blockquote>
    <p>N:>echo y   | DEL autorun.inf N:\autorun.inf*, Are you sure (Y/N)? y</p>
    
    <p>N:>echo y   | DEL autorun.ini N:\autorun.ini*, Are you sure (Y/N)? y</p>
  </blockquote>
  
  <p>It seem type yes but not enter</p>
  
  <p>How to auto answer yes in batch file.</p>