title: Forfiles is not working in batch file but it is working in command line
body: <pre><code>FORFILES -pc:\tempfolder -s -d-6 -m* -c "CMD /C if @ISDIR==TRUE RD /S /Q @FILE"
  </code></pre>
  
  <p>is not working in batch file but it is working in command line</p>
  
  <p>I am using older version of forfiles for windows xp. As mentioned above forfiles is working in command prompt, but when i copy the same command to batch file it's giving can't execute (error 2).</p>