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: Is there a fast way to rename files according to their placement on a playlist? (Read 668 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Is there a fast way to rename files according to their placement on a playlist?

So, e.g., if a foobar playlist consists of the files "foo.ogg", "bar.ogg", "song.ogg" in that order, is there a way to automatically rename them "00 foo.ogg", "01 bar.ogg", "02 song.ogg"? Readjusting the track numbers in the metadata to fit would be nice but not what I need right now. Reply fast if you can, thanks.

 

Re: Is there a fast way to rename files according to their placement on a playlist?

Reply #1
Select the tracks then 'right click/File Operations/Rename to...'. In the 'file name pattern' textbox you can input something like this:
Code: [Select]
%list_index%
This will rename them according to their position in the list as: 1.ogg, 2.ogg, 3.ogg etc as the preview states as well.

Or if you want them to be in the format of 00-99, then:
Code: [Select]
$num(%list_index%,2)

More info:
https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference

If instead you want to auto-adjust the tracknumbers in the selection, you can do 'right click/Properties/<right click on the tracknumber field>/Auto track number'.

Saying 'reply fast' is not really an incentive to anyone. People will answer when they have time and feel like it.