With .NET, you will have to setup a recursive function, like:
private list<string> GetDirectoryTree(string directory)
{
}
The function will then use a DirectoryInfo and iterate all directories,
feeding them to the same function to see if they have directories. You then
pass the finalized list back out and you can consume it. This need not be a
list<string>, but it is an easy example.
Another option would be to use a process object and call a DOS dir command.
One easy way is to fire off the results to a file, using
C:\directory\filename.txt at the end of the dir command. You can then
consume the results. if you use a /b, it is bare (no attributes) and quite
easy to read.
Hope this helps.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Blog:
http://gregorybeamer.spaces.live.com
Twitter: @gbworld
*************************************************
| Think outside the box! |
*************************************************