Link to home
Start Free TrialLog in
Avatar of ttrbrtsn
ttrbrtsnFlag for United States of America

asked on

how to print and extire folder structure

how to print and extire folder structure and sub folders and files

i tried dir > print.txt. in DOS but only gave me the root i was in. i need ALL the subfolders as well
Avatar of TJ Cooperman
TJ Cooperman
Flag of United States of America image

try dir> list.txt
Avatar of bbao
simply run the TREE command.
Try the tree command in place of dir
Avatar of ttrbrtsn

ASKER

"tree > print.txt" seemed to work HOWEVER, it only lists the folder structure, not the files within them.

thanks
ASKER CERTIFIED SOLUTION
Avatar of TJ Cooperman
TJ Cooperman
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
> dir /s >list.txt

IMPO no idea why this command could be the answer as it only lists all files and folders under given path (the current folder by default). it does not show the required folder structure directly. TREE does it, visually.