title: Copy file(s) containing string to a location oneliner - is there a better way with cmd.exe?
body: <p>This </p>
  
  <pre><code> for /f "tokens=*" %i in ('dir *sonic.exe /s /b') do copy /y "%i" D:\temp\utils\
  </code></pre>
  
  <p>The question is there a better or shorter way to do it ?</p>
  
  <p>p.s. I know that "tokens=*" could be omitted if the file path does not have spaces ..</p>
  
  <p>Update: I found a shorter ways of finding ( not copying ) from my old cheat sheets:</p>
  
  <pre><code>::START - RUN - cmd.exe
   dir d:\libs\*SubSonic*.dll /s /b&gt;&gt;list.txt&amp;list.txt
  :: START - RUN - CMD.EXE 
  where /R D:\libs\ *SubSonic*
  </code></pre>