Unzip multiple files

Hi, I’m trying to unzip multiple files in a folder. Using the Unzip step it results in just the first file unzipped. Can you please help me on how to solve it? Many thanks.

Hi! Sergio,

You can use the ‘Get files from result’ step to read all the zipped filenames. Once you have the filenames you can pass the files one by one to the Unzip step.

You can pass the filenames serially using the Start Loop - Continue Loop steps or using the Workflow Executor step in your workflow.

1 Like

Hi! Seema,
Thanks for your reply. The Unzip step can’t be used in a Loop. I tried the PowerShell step that goes fine inside a Loop. The problem is that it unzip just the first file. Probably there is an error in the code. I find this one on the Internet.
code PS

1 Like

Hi! Sergio,

Please can you try the workflow executor step.

2 Likes

Thank you, Seema, for the nice solution. It worked very well. I had to choose the options “Uniq name” and “Move files after extraction” in the Unzip step. Otherwise it would unzip the files like 8 times each one.

2 Likes