INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Renaming Files With Disc #s?  (Read 1035 times)

steveklein

  • Galactic Citizen
  • ****
  • Posts: 478
Renaming Files With Disc #s?
« on: April 14, 2008, 03:39:07 pm »

I've got a lot of boxsets that are not named correctly on my hard disk, but are tagged correctly.

I want to derive the name from ID3 tags in the format

Artist - Album - Disk # - Track - Title

How do I do this in either MC12, or elsewhere? My other file renamer software doesn't pick up the Disk # ID3 info.
Logged

Frobozz

  • Citizen of the Universe
  • *****
  • Posts: 641
  • There is a small mailbox here.
Re: Renaming Files With Disc #s?
« Reply #1 on: April 14, 2008, 09:03:01 pm »

MC can do that.  Here's my renaming script which includes the Disc # if a Disc # is present.

Mid([Album Artist (auto)],0,20)-Mid([Album],0,20)-If(IsEmpty([Disc #],1),,PadNumber([Disc #],2))-PadNumber([track #],2)-Mid([Name],0,20)

The reason for the Mid strings is to limit the length of the file names.  Otherwise some of my classical files get to be too long.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9133
Re: Renaming Files With Disc #s?
« Reply #2 on: April 15, 2008, 12:58:56 am »

I want to derive the name from ID3 tags in the format

Artist - Album - Disk # - Track - Title

How do I do this in either MC12, or elsewhere? My other file renamer software doesn't pick up the Disk # ID3 info.
Using MC12, select the files in question, right click, Library Tools, Rename Files From Properties

Set the top option to "Rename (may move files in some cases)"
Select only "Filename"
Paste the following rule into the "Rule" field: [artist] - [album] - Disc padnumber([disc #],2) - [track #] - [name]
Check the preview filenames on the right, and if you're happy, hit the OK Button to apply the rename rule.

This rule is simple and requires that you select the affected files. If you use it on files that have no [disc #] tag you will wind up with "Unknown disc #" entries in your filenames. You can use database expression functions as shown by Frobozz if you would like MC to take care of that scenario for you automatically.

-marko.
Pages: [1]   Go Up