Aug
3
Written by:
Javier Callico
8/3/2009 12:00 AM
Using the FOR command and an unzip program, like the free 7-Zip, all the files in a given folder can be easily unzipped (using C:\Temp in this example):
for /f "tokens=*" %%G in ('dir /b "C:\Temp\*.zip"') do "C:\Program Files\7-Zip\7z.exe" e -y "C:\Temp\%%G"
The batch file available for download below, extends the usage of the command above and allows to specify the folder as a parameter.
Usage: UnzipAll.bat "C:\Temp"

Download UnzipAll.zip here.