# zip-dist.ps1 $source = "dist" $timestamp = Get-Date -Format "yyyyMMddHHmmss" $zipPath = "D:\win_share\qingpu\zhaoshang-$timestamp.zip" if (Test-Path $zipPath) { Remove-Item $zipPath } Compress-Archive -Path "$source\*" -DestinationPath $zipPath Write-Host "zip succeed: $zipPath"