Skip to main content
Topic: Is there a fast way to rename files according to their placement on a playlist? (Read 101 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.

 
SimplePortal 1.0.0 RC1 © 2008-2019