for /r "F:\Temp" %%a in (*.bat) do echo %%a>>.\list.txt 转载于:https://www.cnblogs.com/krisy/p/5973841.html