|I want to copy the .rpt files within the 'Documents' directory that are 1 directory-level down|
(without going into deeper sub-directories that may or may not exist).
I want to save the copy to a new directory while concatinating the sub-directory id into the .rpt file name.
I have a partial statement that simply copies the files into the source- but need to
add the concatenation of the sub-directory id.
for /d %%a in ("D:\Documents\*") do @copy "%%~Fa\*.rpt" "D:\temp\PublishedReports\" 2>NUL
I've been searching and attempting for the better part of the day- just can't seem to get it.
Thanks for any assistance.