Hi, I'm trying to list a directory with its content in batch code and save it in a txt named date.txt, what I need is something like a family tree, I've tried with:
dir /s /b > Listar.txt dir /s > Listar.txt
and it is not what I need, I leave an image so you can see how I would need it to look, I hope you can help me
What you want can be achieved with the tree command .
using the following options:
This would be the call:
More information: tree command (English)
This is an example of how it would be saved to your file:
Test