powershell

sethayes

·

Rename-Archive

·

Powershell

·

Total Size: 445 B

·

·

Created: 5 years ago

·

Edited: 5 years 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

800 views

Are you sure you want to delete?