批处理把文件夹内的xml文件移到上一层 for /f "tokens=* delims=" %%i in ('dir /b /a-d /s "*.xml"') do (move "%%i" "%%~dpi./../") pause 参照:http://www.bathome.net/thread-9597-1-1.html