Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a folder path name. I need to write a code which takes any file with ".zip" suffix and unzips it. Source path needs to be dynamic. Destination may be hardcoded. Cannot do it using properties as daily 50 zip files comes to that folder. Please help....
Posted

1 solution

Get Files in given folder and filter with extension (zip)
check Listing files in a directory matching a pattern in Java[^]
Now read ZIP file with “ZipInputStream” and output it to “FileOutputStream“
check How To Decompress Files From A ZIP File[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900