for /f %i in ('dir /s /b /ad f:\main') do copy %i\*.* f:\image 转载于:https://www.cnblogs.com/CoderWayne/archive/2012/05/07/4485680.html