BAT遍历所有文件夹及其子文件夹

来源:互联网 发布:网络出租屋怎么赚钱的 编辑:程序博客网 时间:2024/05/17 23:39
方法一:for /r D:\要遍历的目录\ %%i (*.exe) do ( echo %%i) 方法二:set DestPath=D:\你的目录\rem 你的后缀set DestExt=*.exe for /f "delims=" %%i in ('dir /b/a-d/s %DestPath%\%DestExt%') do (echo %%i)
原创粉丝点击