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

The specified initialization vector (IV) does not match the block size for this algorithm