Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

Using FB2K for correcting file names that are too long ?, Closed due to spam. Please PM a staff member to reopen.
post Apr 13 2012, 21:54
Post #1

Group: Members
Posts: 220
Joined: 23-August 05
Member No.: 24082


I came across a weird problem today.

I have been running a music library from an ext USB driver (320GB+, mostly mpt3 files) for my Logitech Squeezebox devices.

Bought a nice new Win 7 64bit laptop today with a 750GB drive so tried to copy over the library.

Annoyingly approx. 113 mp3 files refused to copy because of filename length issues.

Don't understand why they can exist & be played from the USB drive on my old netbook, but there you go.

Is there an easy way I can use FB2K to identify all the culprits & shorten the filename lengths to circumvent this problem ?

Go to the top of the page
+Quote Post
Start new topic
post Apr 18 2012, 11:38
Post #2

Group: Members
Posts: 602
Joined: 5-June 11
Member No.: 91257

Yes it is possible to manage this information from within foobar2000.

Firstly, I would like to state that I am using Columns UI alternative user interface ("CUI"), and this allows me to create a custom column with conditional string colors,
i.e. if path is below 255 characters in length then display the string using normal color, if string exceeds 255 characters display the string in bright red.
As you may guess, having the option of coloring strings conditionally is a powerful visual aid, unfortunately the foobar2000 Default User interface ("DUI") does not have such features.

So... this is how to do it :

Create a custom column in your Playlist Viewer,

         and give it a name, eg: Path Len.

         and give it dimensions, eg: Width: 59 | Alignment: Centre

         and give it this Display script: $len(%path%)

Restart foobar2000 (to permanently set this new configuration).

Search your entire Media Library and create a custom playlist,

         @ foobar2000 toolbar -> Library -> Search

         @ Media Library Search window -> enter this query: ALL SORT DESCENDING BY "$len(%path%)"

         wait for list to fully populate...

         click button [...] -> Create Playlist

         close Media Library Search window

You now have a Playlist of your entire Media Library sorted by Path Length, descending with highest number at the top of the list (as can be seen in your Path Len. column).

Happy editing.
P.S. --- was there a need to quote my whole previous post !!!???
Go to the top of the page
+Quote Post

Posts in this topic

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 28th November 2015 - 14:08