Skip to content

Instantly share code, notes, and snippets.

@DineshSolanki
Created August 4, 2021 16:09
Show Gist options
  • Save DineshSolanki/c6b16e4d3942bf477316bae46c17875b to your computer and use it in GitHub Desktop.
Save DineshSolanki/c6b16e4d3942bf477316bae46c17875b to your computer and use it in GitHub Desktop.
This powershell scrip archives all exe present in directory to individual zip.
dir *.exe | ForEach-Object { & "$($env:ProgramFiles)\7-Zip\7z.exe" a -tzip "$($_.BaseName).zip" $_.Name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment