none
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 

     "UK_MKT_PHO_REF_PAV_PEN_York_Museum_001.jpg"


    "UK_MKT_PHO_REF_PAV_PEN_York_Museum_002.jpg"

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

    "UK_MKT_PHO_REF_PAV_PEN_York_Museum_001(1).jpg"


    "UK_MKT_PHO_REF_PAV_PEN_York_Museum_001(2).jpg"

    Thanks in advance

    Tuesday, July 17, 2018 9:08 AM

Answers

  • Hello,

    Take a look at this:

    https://www.windowscentral.com/how-rename-multiple-files-bulk-windows-10

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

    Regards,

    Tuesday, July 17, 2018 9:21 AM

All replies