I want to zip sql bakup files and move from one directory to to another directory within a system using powershell 1.0 can you help me since am a beginner


Over at CodePlex you can get their PowerShell extensions to use their write-zip extension.

$source = "directory you're zipping from"
$destination = "directory you want to zip to"
Write-zip -LiteralPath $source -OutputPath $destination

If you want to remove the .bkp files after you've zip them, you can use Remove-Item. Try using Get-Help in PowerShel if you run into issues.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.