|I have several folders that get created on a daily basis. For example:|
As you can see the date changes everyday for the folder name but .000 remains constant.
In these folders are daily reports in PDF format. I would like the ability to copy certain pdf's (not all) within these folders to another network drive keeping the folder structure the same on the drive that copies are being stored
So if the R: drive hosted folders:
I would want to copy the folders but only select pdfs from them to the H: drive. This wo uld be done on a daily basis
Currently I am using the following script:
for /d %%a in (R:\Reports\????????.000) do xcopy /e /i /-y "%%~fa" "H:\%%~nxa"
This copys all the contents of the folder from one drive to the other. Is there a way to modify this to copy specific files from fthe folder? if i have files daily called A.pdf B.pdf how would i adjust the command?
Any help would be appreciated