Expand-Archive Decompression methods for deploying ZIP files on Microsoft Windows
by Mountain Computers Inc, Publication Date: Saturday, July 20, 2024
View Count: 271, Keywords: Expand-Archive, Microsoft, Windows, Compression, Decompression, ZIP, CAB, Hashtags: #Expand-Archive #Microsoft #Windows #Compression #Decompression #ZIP #CAB
I had the opportunity to achieve better than average deployment of ZIP files for various needs. What I found interesting was the involvement of 7Zip as a go-to solution recommendation by 3rd parties on Windows platform when there could be an easier solution, unless I missed something. Using Windows application 7Zip utility versus the Microsoft Windows built-in command and feature called "Expand-Files".
Scenario: I have a ZIP file I need to send to an computer. Once there, I need it to be decompressed and expanded. Manually done, easy. How about programmatically done? There is a solution. 7Zip from what I found is the recommended solution by 3rd party support companies. Maybe because it has more versatility than just trying to figure out how Windows can do it without any 3rd party solutions. One just needs the ZIP file once delivered to be expanded so one can take next steps.
Solution: Take 2-3 hours of digging and testing and find "Expand-Archive" as a Power-Shell command. It's not fancy. It's not glamorous. It works.
My trial and errors were like:
1. 3rd party vendor solutions just used 7Zip
2. Windows had the "extrac32" command yet that was for .CAB files only
3. I remembered LHA from my past yet it was probably obsolete though super cool!!!
keep digging....
4. Ah ha! "Expand-Archive" via Power-Shell
That did the trick!! no 7Zip required.
more to come...
if you found this article helpful, consider contributing $10, 20 an Andrew Jackson or so..to the author. more authors coming soon
FYI we use paypal or patreon, patreon has 3x the transaction fees, so we don't, not yet.
© 2024 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.