mshox1
asked on
need to create a directory tree from a base dir in dos
I need to know if anyone know some utility program that runs on the dos command line
that can create a list of all the directory under the start folder. (sort of like walk_dir in Unix alike os)
sort of like explore a give folder, but only display the sub folder below. but like to output to a text file.
i.e start from c:\
need to an output file like
c:\dir1
c:\dir1\sub_1
c:\dir1\sub_1\a
c:\dir1\sub_1\b
c:\dir2\sub_2
etc..
thanks
that can create a list of all the directory under the start folder. (sort of like walk_dir in Unix alike os)
sort of like explore a give folder, but only display the sub folder below. but like to output to a text file.
i.e start from c:\
need to an output file like
c:\dir1
c:\dir1\sub_1
c:\dir1\sub_1\a
c:\dir1\sub_1\b
c:\dir2\sub_2
etc..
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
tree > listing.txt will also do it, but will give you an actual tree listing, linking each folder as appropriate.
ASKER
thank you very much. this is precise what I am looking for.
thanks again
thanks again
dir /d > c:\text.txt
This will create a text.txt file on the root with all your directories of root.