title: Batch script with for loop and pipe
body: <p>I would like all the csv files in a directory which filename does not contain word "summary". Inside the command prompt I can type the following command</p>
  
  <pre><code>dir /b my_dir\*.csv | find /V "summary"
  </code></pre>
  
  <p>When I try to transfer the above command into a batch file I run into a problem in that the pipe command is not supported in the for loop. That is I cannot do the following</p>
  
  <pre><code>FOR /f %%A in ('dir /b my_dir\*.csv | find /V "summary"') do (
  rem want to do something here
  )
  </code></pre>
  
  <p>Can somebody shed some light to me on how to solve the problem above?</p>
  
  <p>Thanks in advance!</p>