Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Automatic folder name rename (Read 1989 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Automatic folder name rename

Hi folks,

I have about 1400 folders containing whole CDs, 80% as wavpack, 10% as flac and 10% as mp3 files.

Under the artist's folder, I have several folder names for each album:


For example:

Neil Young
      1969 - Everybody Knows This is Nowhere
      1972 - Harvest


I'd like to find a way to automatic complete the folder name with the kind of audio it contains.

So, it would be this way:

Neil Young
      1969 - Everybody Knows This is Nowhere [wavpack]
      1972 - Harvest [mp3 320kbps]

Is there a program out there which could do the job?

Thanks a lot,

Prayan

Automatic folder name rename

Reply #1
You could use FooBar2000 to do this. Using a rename script like:
Code: [Select]
\%album artist%\[%date% - ]%album% '['$ifequal($stricmp(%codec%,WavPack),WavPack,%codec% %bitrate%kbps)']'\%filename%

That way it just moves the files around and leaves the actual filename untouched.

EDIT: I would not recommend using bitrate in the name of the folder unless you are certain all the bitrates of the files of an album are identical (e.g. they are CBR MP3s, if one song in the album has a different bitrate then it will go to a different folder). I suggest just use the codec, or use the codec profile. Use something like this:
Code: [Select]
\%album artist%\[%date% - ]%album% '['%codec%[ %codec_profile%]']'\%filename%
and that removes the need of an if statement.
OP can't edit initial post when a solution is determined  :'-(

Automatic folder name rename

Reply #2
Thank you.

I downloaded and installed Foobar2000, but I don't know how I can run/enter the script.

 

Automatic folder name rename

Reply #3
In FB2K
  • Right click on the selected files you want to rename
  • File Operations > Move, Rename, or Copy Files
  • Click Edit, then add New
  • call it whatever you want and drop that script in
An additional tip: you must select the base directory for the naming process, and do try to specify it in the main script.
OP can't edit initial post when a solution is determined  :'-(