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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type