i want to copy all the doc files that start with "k" from folder called DOCUMENTS in my c:\ to a destination folder . The problem is that i also want it copy the K's files from the subfolders under it without creating folder tree in tge destination (thats why i dont use XCOPY)
I tried the command -
for /r "c:\documents" /d %%a in (.) do @ copy /y "%%a\k*.doc" c:\destination
it COPY the files to the destination but (!!!!) WITHOUT DATA - i copy file from source that is 24K and i get it in the destination in size 1K.
what can be the problem ?