md %temp%\unziprar\%~n1\ for %%f in ("%~1\*.zip") do C:\PROGRA~1\WinRAR\winrar e "%%f" %temp%\unziprar\%~n1\ for %%f in (%temp%\unziprar\%~n1\*.rar) do C:\PROGRA~1\WinRAR\winrar x "%%f" %1 rd /s /q %temp%\unziprar\%~n1\