#### 执行命令:dir /S/B >list.txt
在文件夹导航处,输入cmd然后回车,执行命令:dir /S/B >list.txt
![](https://upload-images.jianshu.io/upload_images/2789632-0413af5910d585ab.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![执行命令](https://upload-images.jianshu.io/upload_images/2789632-f01763f4654631a6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
便有一个list.txt文件生成,里面便是文件的完整路径
![新生成的文件](https://upload-images.jianshu.io/upload_images/2789632-25e4fe81495ac797.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![文件内容](https://upload-images.jianshu.io/upload_images/2789632-55911bb9ceda360f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)