title: How to conditionally take action if FINDSTR fails to find a string
body: <p>I have a batch file as follows;</p>
  
  <pre><code>CD C:\MyFolder
  findstr /c:"stringToCheck" fileToCheck.bat
  IF NOT XCOPY "C:\OtherFolder\fileToCheck.bat" "C:\MyFolder" /s /y
  </code></pre>
  
  <p>I am getting an error ("C:\OtherFolder\fileToCheck.bat" was unexpected at this time.) when trying to execute this.</p>
  
  <p>Please let me know what I am doing wrong.</p>