@echo off REM Move to the given path cd %1 REM Extract all archive files with 7zip for /f %%f in ('dir /b') do (7z x -y "%%f" > nul) REM Remove all *.zip files del *.zip REM Move back to the given path cd %2