I am trying to rename a folder full of files (over 300 files) with names in the format:
YYYYMMDD-something-descriptive-goes-here.mp3
to
YYYYMMDD.mp3
All of the batch utilities that I've seen can add text or replace text, but so far I have not found one that will truncate text to a specific length. The ones that do remove text will only remove a set number of characters from either end of the file (beginning or end). In my case, these file names are variable in length, so they don't work.
Any ideas?
YYYYMMDD-something-descriptive-goes-here.mp3
to
YYYYMMDD.mp3
All of the batch utilities that I've seen can add text or replace text, but so far I have not found one that will truncate text to a specific length. The ones that do remove text will only remove a set number of characters from either end of the file (beginning or end). In my case, these file names are variable in length, so they don't work.
Any ideas?