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