Help - Search - Members - Calendar
Full Version: BUG?: foobar 0.9.4.2 handling of filenames length
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
therobin
Recently I was reorganizing some of my files and move one file with a long title to another dir.

When I renamed one of my files using the filenamer to match the format "track - title" I got this

D:\Music\Miscellaneous\Soundtracks (Movie & TV)\Star Wars\Star Wars Episode VI - Return of the Jedi Special Edition (1997)\Disc 2\07 - The Battle of Endor II (Leia is Wounded_The Duel Begins_Overtaking the Bunker_The Dark Side Beckons_The Emperor's Death).flac

It exceeds the 255 character limit, which of course caused problems trying to use it other applications. Foobar, however was able to play and minipulate the file fine. Problems did occur when trying to load the single file into foobar. The add file would not accept it (invalid path error). However the file does load and act normally if I used add dir.

I now renamed it to remove the brackets so it operates normally in windows and other apps using the foobar file renamer.

I don't think foobar should allow this kind of action, or at least have warning that the filename will exceed 255 characters. I never realized until I got a filename error in another application.
FrozenSpoon
That looks like a completely valid path for a NTFS file. Most programs don't work well with filenames that long though, including many built-in Windows programs/tools/windows.
pepoluan
Use SUBST to get around the 255-char limitation if necessary.
kwanbis
QUOTE(therobin @ Dec 26 2006, 18:17) *

When I renamed one of my files using the filenamer to match the format "track - title" ... It exceeds the 255 character limit, which of course caused problems trying to use it other applications.

i cut them to 106 chars, to be CD compatible, like this

$cut(%album artist%[ - %date%][ - %album%],106)
\
$cut($cut(%album artist%[ - %album%],99) - %tracknumber%[. %title%],102)

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.