cd到某目录下,把该目录下的所有文件以树形图的形式输出在file.txt文本中:tree /f > file.txt 转载于:https://www.cnblogs.com/pumushan/p/4831454.html