在cmd中使用 cd /d 路径,进入当前文件夹中使用 dir /s /b > 0.txt 如图: 转载于:https://www.cnblogs.com/nuo-chen/p/9927398.html