Created
April 2, 2020 14:24
-
-
Save Delivator/c3926907dcb922d5ff75317d67ad5e21 to your computer and use it in GitHub Desktop.
PS compress all directories in current directory
This file contains 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
Get-ChildItem -Directory | ForEach-Object -Process {Compress-Archive -Path ".\$_\*" -DestinationPath ".\$_.zip"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment