Windows 2000 Un-nesting Files

  • Thread starter Thread starter Sid Elbow
  • Start date Start date
S

Sid Elbow

Not sure how to explain this but:

I have a directory tree consisting of a set of sub-directories each
containing an individual file.

That is, I have <rootdir> containing <dir1>, <dir2>, dir<3> ... etc
<dir1> contains <file1>
<dir2> contains <file2>
<dir3> contains <file3> ... etc

(fwiw the directories are named the same as the files they contain).

Does any one know of a utility (or batch file) that will allow me to
easily un-nest these files (that is pull them out of their individual
directories up to the <rootdir>)?


[If it were just the one tree I'd bite the bullet and could probably do
it manually in not much more time than it takes to write. However, I
have multiple instances of such trees].
 
"Sid Elbow" <here@there.com> wrote in message
news:48515fd2$0$11223$c3e8da3@news.astraweb.com...
> Not sure how to explain this but:
>
> I have a directory tree consisting of a set of sub-directories each
> containing an individual file.
>
> That is, I have <rootdir> containing <dir1>, <dir2>, dir<3> ... etc
> <dir1> contains <file1>
> <dir2> contains <file2>
> <dir3> contains <file3> ... etc
>
> (fwiw the directories are named the same as the files they contain).
>
> Does any one know of a utility (or batch file) that will allow me to
> easily un-nest these files (that is pull them out of their individual
> directories up to the <rootdir>)?
>
>
> [If it were just the one tree I'd bite the bullet and could probably do it
> manually in not much more time than it takes to write. However, I have
> multiple instances of such trees].


xxcopy.exe can do this. They call it "Flatten a directory tree".
You can download it from a number of sites.
 
Pegasus (MVP) wrote:

> xxcopy.exe can do this. They call it "Flatten a directory tree".
> You can download it from a number of sites.


OK, found it. I'll give it a whirl.

Thanks, Pegasus.
 
Back
Top