When you export a folder’s structure to “.doc” or “.txt” formats using the “tree /a /f > output.doc” command via the Command Prompt, you will get a file containing the entire folder’s content, including files. If you don’t need to export the files but only the folders, use the “tree /a > output.doc” command instead.