Powershell change extension

Question:

I have a problem with change extension of a file. I need to write a script which is replicating data, but data have two files. Filename is not a string, so we can’t use normal -replace

I need to get from

this form

We try to use a split, but this command show us things like below

Thanks for any ideas,

Answer:

Source:

Powershell change extension by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply