We help IT Professionals succeed at work.

Copy files in Windows with folders

Lev Seltzer
Lev Seltzer used Ask the Experts™
I would like to copy a few hundred files from one parent folder to another parent folder. The files will match a pattern of btya_aub*.jpg, but they are spread out in dozens of sub-folders. I would also like to keep the sub-folder structure intact in the destination folder. How can I do this in Windows 10?

Thank you.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2018
Distinguished Expert 2018
robocopy is your friend; this should do it:
robocopy.exe "S:\ource\Parent\Folder" "T:\arget\Parent\Folder" btya_aub*.jpg /s /r:0 

Open in new window


Thank you. The solution worked perfectly!