Created
June 4, 2024 17:09
-
-
Save nickolasdeluca/c73a219ea99fb33753cea4f1a5891dba to your computer and use it in GitHub Desktop.
Powershell command to zip every file inside a folder individually
This file contains hidden or 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 "." | ForEach-Object { Compress-Archive -path $_.Name -destinationPath "$($_.Basename).zip"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment