Created
August 4, 2021 16:09
-
-
Save DineshSolanki/c6b16e4d3942bf477316bae46c17875b to your computer and use it in GitHub Desktop.
This powershell scrip archives all exe present in directory to individual zip.
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
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