Extract file and folder contents from zip files similar as to a batch process

jana used Ask the Experts™
Is there a batch process we can use to extract a series of files from a series of zip files?  For example, we have over 300+ zip files and  want to extract all the files & folders with "dvsum*.*" to a temp area.  The files extracted we need to have their "saved" folder name appear as they  where originally zipped.  Example, original files was in "c:\buss2\dv" folder and want to extract them to a temp folder "c:\temp" for analysis, but within this  Temp folder we want their original location, thus "c:\temp\buss2\dv".
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

You need to purchase the WinZip Command Line add-on for this work


You can use the command line to extract files of your choice from WinZip files.
End-user support
Another free zip tool that does the job is 7-zip.

Here is the command line that works for your case.
Make a file extract7z.bat with this code.
for %%a in ("c:\myfolderoffiles\*.zip") do 7z x "%%a" "buss2\dv\dvsum*.*" -r -oc:\temp\buss2\dv

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial