I need to search a specified folder and its subdirectories for file(s), then copy them to a specified folder somewhere else. Is it possible to use dir
and copy
with a pipe?
dir /s foo???.txt | copy g:\someplace
The above doesn't work. The left side of the pipe finds what I want it to, but I can't get it to copy the found files. I'm using Windows 7 command prompt.