set Path=;"%~dp07z";%SystemRoot%\system32 set "zip=%~dp07z\7z.exe" for /r %%i in ("*.zip") do ( "%zip%" x %%i -y -aos -o"*\" )