zip-to-qingpu.ps1 288 B

1234567891011
  1. # zip-dist.ps1
  2. $source = "dist"
  3. $timestamp = Get-Date -Format "yyyyMMddHHmmss"
  4. $zipPath = "D:\win_share\qingpu\zhaoshang-$timestamp.zip"
  5. if (Test-Path $zipPath) {
  6. Remove-Item $zipPath
  7. }
  8. Compress-Archive -Path "$source\*" -DestinationPath $zipPath
  9. Write-Host "zip succeed: $zipPath"