引用:http://zhidao.baidu.com/question/276950035.html
for /f "delims=" %%a in ('dir /a-d /b %ext%') do (set F=%%~fa 改成 for /f "delims=" %%a in ('dir /s /a-d /b %ext%') do (set F=%%~fa