Skip to content

Instantly share code, notes, and snippets.

@NeraSnow
Created March 9, 2020 23:35
Show Gist options
  • Save NeraSnow/e02fc72fc4f5772d5547ce8a85f38d45 to your computer and use it in GitHub Desktop.
Save NeraSnow/e02fc72fc4f5772d5547ce8a85f38d45 to your computer and use it in GitHub Desktop.
Unzip
FOR /F "delims==" %%I IN ('dir /b /s "*.zip"') DO (
"C:\Program Files\7-Zip\7z.exe" x -o"%%~dpnI" "%%I"
)
@echo off
FOR /F "delims==" %%J IN (list.txt) DO (
REM echo "%%J"
FOR /F "delims==" %%I IN ('dir /b /s "%%J\*.zip"') DO (
REM echo "%%~dpnI"
"C:\Program Files\7-Zip\7z.exe" x -o"%%~dpnI" "%%I"
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment