Link to home
Start Free TrialLog in
Avatar of mshox1
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
Avatar of fred_michiels
fred_michiels

on command line type :

dir /d > c:\text.txt

This will create a text.txt file on the root with all your directories of root.
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tree > listing.txt will also do it, but will give you an actual tree listing, linking each folder as appropriate.

Avatar of mshox1

ASKER

thank you very much.  this is precise what I am looking for.

thanks again