acoolrocket

Extract each .zip in its respective folder (Powershell)

Jan 29th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Get-ChildItem -Directory | ForEach-Object {
  2. $folderPath = $_.FullName
  3. Get-ChildItem -Path $folderPath -Filter "*.zip" | ForEach-Object {
  4. Expand-Archive -Path $_.FullName -DestinationPath $folderPath -Force
  5. }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment