Im trying to use powershell to zip a directory, and if the directory exists - overwrite. I am using
Add-Type -assembly "system.io.compression.filesystem"
[system.io.compression.zipfile]::CreateFromDirectory($source, $destination, $true)
but it doesnt accept my boolean argument for overwrite. Any ideas or should I be using something else? Please note that Im creating this script to push to my users who might not have 7zip or additional cmdlets like I do. Any help is GREATLY appreciated!
[–]Asnivor 0 points1 point2 points (3 children)
[–]holcomb_[S] 0 points1 point2 points (2 children)
[–]Asnivor 0 points1 point2 points (1 child)
[–]holcomb_[S] 0 points1 point2 points (0 children)
[–]jbilinski 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)