1. 程式人生 > >noip複賽批量移動資料夾下的檔案

noip複賽批量移動資料夾下的檔案

@echo off for /f "delims=" %%a in ('dir /ad /b') do ( for /f "delims=" %%b in ('dir /a-d /s /b "%%~a"') do ( move "%%~b" "%%~a" ) )

該命令儲存為bat批處理檔案後可以移動子資料夾下的檔案到上一級目錄