创建unzipall.bat for /r %%f in (*.zip) do ( mkdir %%~dpnf ##创建同名文件夹 tar -xf %%f -C %%~dpnf ##将文件解压到同名文件夹下 )