CMD: Search and copy specific files on your computer

Okay, i just had to search for specific files on my computer and i wanted to have them copied to a specific folder. This is some kind of note for myself but maybe you can make use of it too .. don’t know. Logo_cmd

c:\>FOR /F "Tokens=*" %i in (‘DIR /B /S *map*.png’) do md "c:\temp\icons\map%~pi
" | copy "%i" "c:\temp\icons\map%~pi"