Help regarding export filename, please.


So I generally export NFOs. The problem is I dont know how to figure out the 00s in front of NFO file so that it remains on top among audiofils that starts with 01, 02 etc.

Scenario is I have 3 types of file names. Audio files starting from 1, 01 and 001. I want NFO to be numbered as 0, 00 and 000 respectively according to the audiofiles in directory.

Please help so that I can put everything in one code. Currently I use this:


But it obviously cuts first alphabet when file name starts from 1.

Or any other alternative in export to get the filenames starting as 0, 00 and 000 according to the situation.

So I seek help regarding export file name.


... what about


because I want the nfo filename to be same like audio file name. Audio file names are all same, only differs the number of track.


Then I don't understand the organization of the files and how many nfo-files should be there in the end.
Please give a concrete example of 2 audio file names with different track numbers and the corresponding nfo-filenames.


Ok, when I run my export tags for NFO it give me this result. :rolleyes:

Example One:

NFO Filename becomes this:

I want NFO filename to become:

Example Two:

NFO Filename become this (which is perfect):

Example Three:

I want NFO filename to become:

And want to make only one NFO file per directory.


So perhaps this does it:


Thanks, gonna try it now. Will reply back. :slight_smile:


Thanks for your time again. But its giving nfo file that starts with 00 in all the cases.

I want nfo file to start with:
0 when only 9 songs in the directory i.e. 1-9 tracks (single digit)
00 when upto 99 songs in the directory i.e. 01-99 tracks (double digit)
000 when upto 999 songs in the directory i.e. 001-999 tracks (triple digit)


Sorry - I for some reason I thougt it was alsways 2 digits and sometimes 3.
So here we go for the next attempt:



Worked. Awesome. Thanks a lot. Solved.