How to get tree of folders in CMD?
Leave out the "/F" switch, since it's what causes Files to be included.
From 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.