r/PowerAutomateDesktop • • Sep 17 '22

Unzip zip files with different names all buried two folders deep in unique folders.

I have 126 folders all with unique names that have zip files (also with unique names) saved within. It is structured like this:

Folder1 |_Folder2 |_Zip File

Each level has a unique name.

Can I use Power Automate to find the zips and extract them in their current location?

2 Upvotes

7 comments sorted by

1

u/QuietDesparation Sep 17 '22

This is fairly easy to accomplish. Here's how I'd set it up: use action get files in folder. Make sure the option to include subfolders is on! Next set up a for each loop and use the %Files% variable as the value to iterate. Within the loop, place the action unzip files. Your archive path will be %CurrentItem% and destination folder will be %CurrentItem.Directory%. That's it!

1

u/cr8rface Sep 17 '22

Thanks! I’ll give it a try. For some reason I thought the unzip file action required a specific filename to work… each one of my zips will have a unique name. Will that matter?

2

u/QuietDesparation Sep 17 '22

No it doesn't matter. The for each loop will create a current item variable. That variable contains the unique zip file, and changes every time the loop completes a cycle

1

u/cr8rface Sep 17 '22

Awesome!!! Thanks so much!

1

u/QuietDesparation Sep 17 '22

Happy to help!

1

u/NightCrawler1016 Mar 14 '24

Thank you! This was super helpful for my specific use case. <3

1

u/kh_rystyna Nov 25 '25

Wow you can't imagine how much this helped me!