powershell

sethayes

·

ReZip-Archive

·

Powershell

·

Total Size: 520 B

·

·

Created: 1 month ago

·

Edited: 1 month ago

Function ReZip-Archive { Param ( $folders ) If ($null -ne $folders) { $folders = $folders | Get-Item } Else { $folders = Get-ChildItem "C:\Users\Seth\Downloads" -Directory | Where-Object {$_.Name -like "*X-Force*"} } ForEach ($folder in $folders) { $name = "$($folder.FullName)" $saveTo = [System.IO.Path]::GetDirectoryName("$($folder.FullName)") Compress-Archive -Path "$($name)\*" -DestinationPath "$($saveTo)\$($folder.BaseName).zip" } }

1 bit

16 views

Are you sure you want to delete?