Skip to content

Instantly share code, notes, and snippets.

@evanricard
Created September 26, 2019 23:27
Show Gist options
  • Save evanricard/48c3ab7abb95cc2311f474b56babb71b to your computer and use it in GitHub Desktop.
Save evanricard/48c3ab7abb95cc2311f474b56babb71b to your computer and use it in GitHub Desktop.
$dir = dir *.zip
#go through each zip file in the directory variable
foreach($item in $dir)
{
Expand-Archive -Path $item -DestinationPath ($item -replace '.zip','') -Force
}
/* unzip all files in a directory and then do some work!! */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment