How to Loop Through PKZIP File Type in Folder

Hi Community!

I want to loop through a folder and it’s subfolders.

My problem is that the typical way to ID subfolders would be to assign something like
foldersList = directory.getdirectories(“folderpath”, “.”, SearchOption.AllDirectories)
but that only identifies the File Folder type and what makes this problem unique is that the “folders” inside the folder are type: PKZIP File (.zip)

My goal is to loop through each subfolder (PKZIP File) and unzip each one using the Invoke Method.

Problem is- how do I loop through PKZIP Files?

Thank you so much!

There are 2 folders but my sequence shows 0.


Folder Count Test

foldersList= directory.getfiles(“folderPath”, “*.zip”)
Message box

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.