Powershell – Rename-Item ,Rename File Extension for Multiple Files

Rename File Extension for Multiple Files at once !

Oh Snap ! what are this file extensions .. *.err ,  *.log

why it’s not like *.txt ? ..if i had a way replace the extension 🙂

lets do it !

first choose the relevant path –

count the files ,so the script knows when to stop on the loop –

$GetFiles.Length

what’s the full name for each file you’re parsing into the loop  ?

create variable to present it and if its match your request then Rename it with

Rename-Item cmdlet

change multiple file extensions on folder –

 

 

(Visited 3,678 times, 1 visits today)

Leave a Reply