Powershell - Creating and unpacking a zip (archieve file)


Here are some way to create an archive



Compress-Archive -Path .\bin\$targetBuild\* -DestinationPath .\$serviceName.zip


To add to this archive, use the -update parameter

Compress-Archive -update -Path .\deployControlService.ps1 -DestinationPath
.\$serviceName.zip



To unzip your achieve, use the following command


Expand-Archive -Path .\ACC.IDS.ControlService.zip -DestinationPath $servicePath

Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

A quick tutorial for OWASP ZAP tool for beginners

OpenCover code coverage for .Net Core