|
1 2 3 4 5 6 7 8 |
# This script can be used to zip a directory with plain powershell. $source = "C:\temp" $destination = "D:\temp.zip" If(Test-path $destination) {Remove-item $destination} Add-Type -assembly "system.io.compression.filesystem" [io.compression.zipfile]::CreateFromDirectory($Source, $destination) |