I want to copy all files of a certain type (like .docx, .pdf, etc) on my PC into a folder. How can I do that?
Run this command to copy all PDF files from the C drive and subdirectories to
You can do the same with any other format.
Perhaps the simplest option is to use Windows Search from whichever drive you wish to copy the files from (or from My Computer if you want to find them across all of your drives). Type *.pdf into the search field at the top right of an Explorer window. Once it finishes finding everything, press Ctrl+a, then Ctrl+c. Navigate to your destination folder, then Ctrl+v. This will allow you to have all of the files in that one directory (no subdirectories).
Another option is Robust Copy (robocopy), which will create a mirrored folder structure of the files it finds into the destination folder:
If your PC does not have this command, it is available as part of the Windows 2003 Server Resource Kit here.