@echo off
set WinRAR="C:\Program Files\WinRAR\WinRAR.exe"
for /r . %%a in (*.rar *.zip) do (
cd "%%~pa"
%WinRAR% x "%%a"
del "%%a"
)
@echo off
set WinRAR="C:\Program Files\WinRAR\WinRAR.exe"
for /r . %%a in (*.rar *.zip) do (
cd "%%~pa"
%WinRAR% x -ad -y "%%a"
del "%%a"
)
转载【https://blog.csdn.net/hahohehehe/article/details/103393802】