Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $zipFiles = Get-ChildItem -Path . -Filter *.zip
- foreach ($zip in $zipFiles) {
- $folderName = $zip.BaseName
- New-Item -Path $folderName -ItemType Directory -Force
- Expand-Archive -Path $zip.FullName -DestinationPath $folderName
- }
- ### To execute, type powershell in the directory bar in Windows Explorer, then paste the code.
Advertisement
Add Comment
Please, Sign In to add comment