DEV Community

visothseng
visothseng

Posted on

How To Generate Folder Tree Structure In Windows 10

​ Hello, if you want to generate your project structure in windows 10 just follow my step below

  1. Go to the folder that you want to generate Alt Text
  2. go to search bar and type cmd

than you will see the terminal

  1. type this command in the terminal


   tree /f /a tree /f /a > tree.txt



Enter fullscreen mode Exit fullscreen mode

You also can generate the file that you need Example: docs

  1. then you can see your file

thank you and also forgive me for my English.

Top comments (4)

Collapse
 
kalksdlkdsa profile image
RatRatARMY

I used the both @visothseng and @iamtekson step, but it only show this error (in my CMD):
'tree' is not recognized as an internal or external command,
operable program or batch file.
How to fix this error? I can install anything for that?

Collapse
 
iamtekson profile image
Tek Kshetri

I think you typed tree /f /a twice. Please replace step 3 with the following,

tree /f /a > tree.txt
Enter fullscreen mode Exit fullscreen mode

PS: Please update your step numbers also.

Collapse
 
sigmakib2 profile image
Sakib Mahmud

Thanks man!

Collapse
 
kalksdlkdsa profile image
RatRatARMY

I can't use @visothseng command above. I can install something? Or another way to fix this error?