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"

One thought on “CMD: Search and copy specific files on your computer

  1. please explain me better, I’m a beginner and just put the command, not explained it all, my objective is this, find notepad.exe and copy it to a folder on the C drive called Cost. please I would greatly appreciate it

Leave a Reply

Your email address will not be published. Required fields are marked *