powershell

sethayes

·

Rename-Archive

·

Powershell

·

Total Size: 445 B

·

·

Created: 1 month ago

·

Edited: 1 month ago

Function Rename-Archive { Param ( $folders ) If ($folders) { $folders = $folders | Get-Item } Else { $folders = Get-ChildItem "C:\Users\Seth\Downloads" -Directory | Where-Object {$_.Name -like "*X-Force*"} } ForEach ($folder in $folders) { Get-ChildItem -Path "$($folder.FullName)" -File | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace(".zip",".cbz")} } }

1 bit

22 views

Are you sure you want to delete?