Okay, so I am very new - learning Python and PowerShell currently, but I have a problem and am trying to solve it with code.
I need a script that will
- Look at a folder to find .zip files
- Unzip located file (to whatever destination, I can define that)
- Delete the completed zip.
- Repeat steps 1-3 until there are no more zip files in the destination
I tried to write a simple loop in PowerShell and I couldn’t figure out how to get Expand-Archive to cooperate. When I used the *.zip wildcard for the path or literal path, it would get mad that I am pointing it at multiple files.
There are thousands of files at the destination, and they are not small so unzipping by hand would be extremely time consuming, and naming the path exactly what the zip file is called five thousand times would only be slightly less time consuming.