Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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