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

To unzip your achieve, use the following command

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


Popular posts from this blog

A quick tutorial for OWASP ZAP tool for beginners

ionic2 cordova build android - Unable resolve gradle 2.2.3