@echo offrem 放在A文件夹里运行for /d %%a in (*) do ( pushd "%%a\" for /f "delims=" %%b in ('dir /a-d/b *.shp *.dbf *.shx') do ( copy "%%b" "%~dp0%%a%%b" ) popd)pause