Windows 11 How to add certain characters to names of all files in a folder

  • Thread starter Thread starter CoffeeTester
  • Start date Start date
C

CoffeeTester

Hello!I have a folder with 800 TIF files and I am looking for a way to add '_0' to each file name.The names are currently:File000File001File002etc.And I want them to be:File000_0File001_0File002_0etc.I have tried rearranging the following command for PowerShell:[ref]$i = 1; gci -file | Rename-Item -NewName {'{0:D4} - {1}' -f $i.Value++, $_}but apparently I don't fully understand how it works, as I can't seem to make it work properly.Does anyone have any suggestions?I would be grateful for some help and explanation.

Continue reading...
 
Back
Top