Powershell - Renaming multiple files RRS feed

  • Question

  • Hi,

    I'm looking to change multiple files on my computer the new name file should be as follows 



    However when I try to rename them it will rename like this:



    Thanks in advance

    Tuesday, July 17, 2018 9:08 AM


  • Hello,

    Take a look at this:

    Dir | %{Rename-Item $_ -NewName ("new_filename{0}.ext1" -f $nr++)}


    Tuesday, July 17, 2018 9:21 AM

All replies