Skip to content

Instantly share code, notes, and snippets.

@nickolasdeluca
Created June 4, 2024 17:09
Show Gist options
  • Save nickolasdeluca/c73a219ea99fb33753cea4f1a5891dba to your computer and use it in GitHub Desktop.
Save nickolasdeluca/c73a219ea99fb33753cea4f1a5891dba to your computer and use it in GitHub Desktop.
Powershell command to zip every file inside a folder individually
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