Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory tree export

Status
Not open for further replies.

maya14

Technical User
May 8, 2007
274
ZA
How can i export my directory tree to txt file. I dont want files just the directory with folders structure. There is same shareware available which can do the trick but it has limitations.
Dir /s > test.txt also shows all files.
 
Try:
Code:
dir /s /A:D
It will recursively list all diretories. It'll also show the current and parent as well though (that's "." and ".."), so you might want to clean it up with findstr /v or something.

Doing
Code:
dir /s /A:D /b
might be more what you're looking for too.
 
You've answered your own question :)

Use the TREE command and pipe it to a file. Just go to a CMD prompt and type TREE for an example

--------------------------------------
"Insert funny comment in here!"
--------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top