Announcement

Collapse
No announcement yet.

is there a way for me to truncate a filename?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    is there a way for me to truncate a filename?

    I've got a filename with roughly 12 charcaters, (letters, numbers, and an underscore) and it ends in an unwanted [1]. Likely due to their being duplicate filenames in a zip if something I downloaded at one point. So here's the deal. Can (how) I use the batch rename to remove the unwanted [1] from the end of the filenames? The file numbers are not in sequential order so simply renumbring them wont work, and there's over 500 so manualy editing 1 by 1 is insane. If irfan cannot due this at this time, perhaps this would be a good feature to add. Also, if it cannot do this, is their another program out there that would serve my needs untill/if/when the feature is added down the road?

    #2
    Get Total Commander. Select all files in question, and then use the function Files -> "Multi-Rename Tool". In the new dialog you can enter a string to search for and replace with another string. Preview the changes in the list of files below. Files will actually be renamed only after you press Start!.

    Tick "RegEx" and enter the following in the 'search for' box:

    "\[\d\]" - matches [1], [2], [7]...
    "\[\d+\]" - matches [1], [11], [12345]...
    "\[\d{1,2}\]" - matches [1], [12], but not [123]

    Comment

    Working...
    X