Computing.Net > Forums > Programming > Unzip All the Zip files from a folder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Unzip All the Zip files from a folder

Reply to Message Icon

Name: moras
Date: November 2, 2009 at 23:21:44 Pacific
OS: Windows Server 2003
Product: Microsoft Windows xp professional sp2 w/ ms plus! / ms plus! digital media edition bundle
Subcategory: Batch
Comment:

HI,

I need to write a batch script which will unzip all the .Zip files from a folder XYZ.

Inside the folder XYZ there are multiple .Zip files I need to unzip them and place them in my target directory.

Regards,
Mora



Sponsored Link
Ads by Google

Response Number 1
Name: X-TechKid
Date: November 3, 2009 at 00:13:02 Pacific
Reply:

Hi Mora,

Assume that we execute the batch file in the folder where u have all the zip files.

@echo off
@echo Extracting the file..
"C:\Program Files\WinZip\winzip32.exe" -e *.zip
@echo all files extracted

----------------------------------------------------------------------
This should work, The path where the winzip32.exe file exists may vary based on ur installation path for winzip. I used the default path.

If u face any issues with this code..
Try
this
if suppose f:\folder is the folder which contains the zip files

@echo off
@echo Extracting the file..
cd C:\Program Files\WinZip\
winzip32.exe -e f:\folder\*.zip
@echo all files extracted
----

Regards
X-TechKid

<marquee>Keep Smiling.. :)


0
Reply to Message Icon

Related Posts

See More


Help modulud operator delete first three charac...


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Unzip All the Zip files from a folder

zip all the .csv files in a folder www.computing.net/answers/programming/zip-all-the-csv-files-in-a-folder/16724.html

Unziping file and generating log based on www.computing.net/answers/programming/unziping-file-and-generating-log-based-on/20233.html

Unzip and Appended the .Zip name www.computing.net/answers/programming/unzip-and-appended-the-zip-name/20234.html