Skip to content

Instantly share code, notes, and snippets.

@redtrillix
Last active July 29, 2022 07:08
Show Gist options
  • Save redtrillix/478594d9ae79e9a915ecdeb0c3e13f37 to your computer and use it in GitHub Desktop.
Save redtrillix/478594d9ae79e9a915ecdeb0c3e13f37 to your computer and use it in GitHub Desktop.
This powershell script will extract all zipped files located in the "dir\source" specified, and create their own directory.
Get-ChildItem -Filter *.zip -Recurse "dir\source" | % { $_.FullName } | Split-Path | Get-Unique | % { cd $_ ; &'C:\Program Files\7-Zip\7z.exe' x *.zip -o* }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment