Thursday, March 23, 2017

Copy files from folders and sub folders to destination folder

Command to copy all files with an extension from folders and sub-folders to a single destination folders

Example: copy all pdf files in folders and sub folders of source folder to destination folder

for /R D:\SourceFolder %f in (*.pdf) do copy "%f" D:\DestinationFolder\

No comments: