Hello All;
I am trying to create a batch file that will copy files from multiple directories into a single directory using wildcard. Example: I have a directory structure of c:\root\1111, c:\root\2222, c:\root\3333. I would like to copy c:\root\1111\*.txt, c:\root\2222\*.txt, c:\root\3333\*.txt to c:\newdir, and the next time I run it I may have a c:\root\4444, so I need to wild card the directory names as well. Of course the problem is if I use /S and xcopy I get the directory structure recreated, and if I don't I can't traverse the other directories.
Copy c:\root\*\*.txt c:\newdir is what I want but don't have.
I hope this is understanable and thaks in advance for any insight.