Created
January 14, 2022 20:08
-
-
Save thinsoldier/12d8fdcbdf4a344bd6002d858fb37ee7 to your computer and use it in GitHub Desktop.
Windows Powershell Extract zip files to the same location with same folder name (removed .zip)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://social.technet.microsoft.com/Forums/en-US/ee897671-fa3a-4e06-8cb6-0986900c032e/powershell-function-unzip-all-files-in-a-folder?forum=winserverpowershell | |
user rex02 | |
#Extract zip files to the same location with same folder name (removed .zip) | |
gci -Recurse -Filter *.zip |ForEach-Object {$n=($_.Fullname.trimend('.zip')); Expand-Archive -Path $_.Fullname -DestinationPath $n -Force} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment