回答:
「/ F」スイッチは省略してください。ファイルが含まれるためです。
からtree /?:
Graphically displays the folder structure of a drive or path.
TREE [drive:][path] [/F] [/A]
/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.
txtファイルに出力するには、次のコマンドを使用します(以下に指定されているように、ドライブCにあります)。
tree /a > "C:\_TREE-Output.txt"
>、他の答えが持っていない部分を持つ「ファイルに保存」があります。