Jump to content

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


Recommended Posts

Guest CoffeeTester
Posted

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...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...