How to use “tree” command to output folder hierarchy with all file name

“tree” command output folder hierarchy, but not include file name in folders as default, so add “/f” option.

STEP1: Open “Command Prompt(cmd.exe)”

STEP2:move to the folder you want to show with “tree” command.

cd <folder pass>

STEP3:execute “tree” command with “/f” option.

Execute “tree /f > tree.txt”.

  • /f:output file name
  • > tree.txt:write into text file(tree.txt).