1.打印文件夹下文件名输出到00.txt中 dir *.* /b> 00.txt 运行get fileName.bat结果如图: 2.文件夹下以及子孙文件夹下的文件名以树形式打印 tree /f > 00.txt 结果如图: 相关文章: