- May
- 3,515
- 5
I had occasion to search for files by different wildcards using an include list containing multiple wildcard entries, e.g.,
dir *post*;*path*
and file postpath.btm showed up twice - obviously once for each wildcard its name matches. Is there a generic way to avoid such multiple processing? In the present instance the effect was negligible, but if the command were COPY(for instance to back up selections of files) it would attempt to copy a possibly huge file more than once. I know of many ways to program around it, for example, the /X option of COPY, combined with selecting by attributes: /A:A will in most cases do it, but it is not a generic solution.
dir *post*;*path*
and file postpath.btm showed up twice - obviously once for each wildcard its name matches. Is there a generic way to avoid such multiple processing? In the present instance the effect was negligible, but if the command were COPY(for instance to back up selections of files) it would attempt to copy a possibly huge file more than once. I know of many ways to program around it, for example, the /X option of COPY, combined with selecting by attributes: /A:A will in most cases do it, but it is not a generic solution.