Ayaz,
Personally, I would write a few line recursive program to write the directory names to a
text file & then you can save the text file. You could do this via scripting & you can
find many scripts on the Technet website:
http://www.microsoft.com/technet/scriptcenter/default.mspx
Here's a simple recursive folder log example in VBS:
http://www.byanyother.name/marshall/scripts/list_folders.zip
In the script itself you will see "E:\zDrive". Replace it with the drive you want to scan.
It also hard codes a log file. You can change the path to whichever you wish. Plus, if you
want to scan another machine than the one being run on the change strComputer = "." to the
machine name.
The logfile is set for append rather than overwrite contents too
If you have any problems then use the VBS scripting newsgroup & they will write you a
script to tailor your needs:
microsoft.public.scripting.vbscript
If you prefer to write it in pure VB or another language then look at the KB programming
articles on the Microsoft site:
http://support.microsoft.com/kb/306666/en-us
The C#/C++ articles are referenced at the top of the page