I have 6 CDs with PDF files inside a lot of folders (Like Prep1, Prep2... and so on.)
I need to copy all the PDF files inside folders to my C:\ and then burn them all.
Is there a command in cmd Prompt that I can do that quick and flawlessly?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
To loop through all folders and subfolders on drive D: and copy
C:\>for /R D:\ %G IN (*.pdf) DO xcopy "%G" C:\myfolder\
To replace existing files without a confirmation prompt use XCOPY /Y
C:\>for /R D:\ %G IN (*.pdf) DO xcopy /Y "%G" C:\myfolder\