is there an easy way to read the directory tree? I would like to be able to do this:
a user picks a number
i dump into a text file the directory tree, but only read as many levels deep as the number entered.
example:
a path on disk: c:\windows\system32\drivers\cabs
user enters "3"
this is returned:
c:\
c:\windows
c:\windows\system32

I have made this work in vb6.0 but i have no idea at all where to even begin in .net.

Other storage ideas for the read path can be considered. It's for a program i am converting to .net that indexes cds. It contains a link to read the directory tree.