I want to unzip all files in a certain directory and preserve the folder names when unzipped.
The following batch script doesn't quite do the trick. It just throws a bunch of the files without putting them into a folder and doesn't even finish.
What's wrong here?
for /F %%I IN ('dir /b /s *.zip') DO (
"C:\Program Files (x86)\7-Zip\7z.exe" x -y -o"%%~dpI" "%%I"
)
dir /b /s "*.zip"
) DO ( – Screamfor /F "delims=" %%I IN ('dir /b /s/a-d *.zip') DO (
. – Haemolysin