新建txt文件,粘贴以下命令: DIR *.* /B >LIST.TXT 将txt文件的后缀改为.bat 执行bat文件即可 转载于:https://www.cnblogs.com/ggwudivs/p/8609056.html