Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi. I have a deep directory tree. for example:
c:\0001
c:\0002
c:\0003
c:\0004These folders have files in them that start with D and others that start with T.
Does anyone know how I can copy all of the files that start with T?
I've tried xcopy c:\000\t*.* c:\test\*.* /s but this copies the folders\subfolders as well. I just want to end up with all of the files in one folder. Anyone have any ides?
By the way. I am just looking for dos commands or maybe suggestions for utilities that are out there. (I do not know programming)
Each folder may have a few sub folders so I am looking to see if anyone has any suggestions besides writing a batch file to go into each and every folder.

Hi
Try something like this@echo off
dir /b ad *.* | find "000" > dirs.txt
for /f %%a in (dirs.txt) do copy c:\%%a\t*.* c:\all\

![]() |
Can't Install Visual Stud...
|
Nav - ruins your hard dri...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |