title: put the find command in a batch file
body: <p>The following command works fine in a CMD window. It lists directories that contains the word "NOTE" but not "NOTES".</p>
  
  <p><code>dir c:\myfiles\mydirectories /s /b /ad |find "NOTE" | find "NOTES" /v</code></p>
  
  <p>When I put the command in a batch file, CMD complains <code>invalid switch -v</code>.</p>
  
  <p><code>dir c:\myfiles\mydirectories /s /b /ad ^|find "NOTE" ^|find "NOTES" /v</code></p>
  
  <p>What did I do wrong? Thanks.</p>
  
  <p>This is on Windows 7.</p>