Skip to main content

Topic: I need to update path names for files in foobar2000's playlists (Read 5148 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Marc
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
I changed my drive lay out to simplify finding things but now I need to change the files names from "G:\" to "H:\".  I added mass tagger and from what I can see it doesn't do that it only works on meta data.  Ideally a find and replace utility would be perfect.
  • Last Edit: 12 July, 2012, 03:46:58 PM by Marc

  • Kohlrabi
  • [*][*][*][*][*]
  • Global Moderator
I need to update path names for files in foobar2000's playlists
Reply #1
The drive letter is not part of a file's name. So you want to copy over the files from your G drive to H, while maintaining the folder structure and names? You can just use Windows Explorer to do so. Or you could use the file operations to move your files with something like $substr(%path%,4,255) to keep the folder structure intact.
It's only audiophile if it's inconvenient.

  • Marc
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #2
Excuse me I meant path.  I need to edit the path name in Foobar playlists.
  • Last Edit: 12 July, 2012, 04:36:19 PM by Marc

  • BenB
  • [*][*][*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #3
... Or you could use the file operations to move your files with something like $substr(%path%,4,255) to keep the folder structure intact.


This is a bit off-topic now it seems, but that title formatting string results in filenames such as filename.mp3.mp3.


I used $directory_path(%path%)\%filename% to move my music collection from one drive to another, but of course what one uses will rely upon the location and structure of their collection.

  • Marc
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #4
I've moved the data now I need to change the path names in the play list to show the change.

  • ruebe
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #5
foo_revive

  • mjb2006
  • [*][*][*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #6
The .fpl format is a binary format tied to the library and track info caching features of foobar2000, and is not intended to be editable, in order to avoid startup & shutdown delays.

Nevertheless, here's what I would do:
  • Open file with freeware hex editor XVI32
  • Ctrl-R [replace]
  • Under 'Find', select 'Text string'
  • Enter file://G:
  • Under 'Replace with', select 'Text string'
  • Enter file://H:
  • Click 'Replace all' button
  • F12 [or File > Save As] and pick a new name for the playlist, in case something went wrong.

I haven't confirmed this actually works though.
  • Last Edit: 12 July, 2012, 05:51:09 PM by mjb2006

  • prateek88
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #7
There is no need to worry about the playlist if u would have done the transfer of your files through file operations. So i suggest copy back all your files again to G:\ as they were previously and then use file operation's move to move all the files to the drive H:\.


  • Porcus
  • [*][*][*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #8
I changed my drive lay out to simplify finding things but now I need to change the files names from "G:\" to "H:\".


Just to ask: It isn't so that you need help to remap the drive letter assigned to a given drive?
  • Last Edit: 12 July, 2012, 06:31:00 PM by Porcus

  • Marc
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #9
There is no need to worry about the playlist if u would have done the transfer of your files through file operations. So i suggest copy back all your files again to G:\ as they were previously and then use file operation's move to move all the files to the drive H:\.


That's not really an option 1) it doesn't move the folders that I know of, 2) it doesn't move the album art and 3) it took almost 8 hours to get them to H:.  It's all my Rock.  There's 1.78TB of music with 223,248 files in 12,680 folders and sub-folders.

  • Marc
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #10
I changed my drive lay out to simplify finding things but now I need to change the files names from "G:\" to "H:\".


Just to ask: It isn't so that you need help to remap the drive letter assigned to a given drive?


No I know how to do that about 4 different ways.  Computer Management, edit the registry well only two but you get the idea. 

  • ruebe
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #11
2) it doesn't move the album art

it does, just check "move entire source folder content" in the files operation setup window

  • Porcus
  • [*][*][*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #12
I wouldn't _move_ a collection to a different drive. I would _copy_ and then use a comparing utility to remove only bit-identicals. So: fb2k --> file operations as others have described (with the copy entire source folder -- or afterwards use a backup-new utility copying only files that are missing from target).

For those copy new / delete identical procedures, I use XXCOPY. Freeware command-line. E.g. XXCOPY g:\ h:\ /E/H/R/RS/BS/CDM will remove from G everything that has a bit-identical copy (and on the very same location) in H, including hidden and system files.
  • Last Edit: 13 July, 2012, 07:11:29 AM by Porcus

  • Marc
  • [*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #13
I thought I had eliminated all the files that were to long but I hadn't so XXCopy wouldn't more them.  It was easier to C&P with Windows Explorer and find the problems files that way.

  • dhromed
  • [*][*][*][*][*]
I need to update path names for files in foobar2000's playlists
Reply #14
I have no experience with Playlist Revive, but maybe it'll help.

Last time I had this problem I saved the playlist as m3u and replaced all instances of one drive letter with the other, then loaded it back into foobar. No need for a hex editor.

Re-copying files should be a last resort solution.

  • KLR
  • [*]
Re: I need to update path names for files in foobar2000's playlists
Reply #15
I had to work over all my playlists - thankfully I only have 63 of the things - Windows insisted on changing the drive with my music on it from G: to H: on every boot for some reason.  There were some arcane solutions suggested and a freeware program that claimed to override Win but I decided to just let it be H:

What I did with the playlists is save all as M3U, then load them all in Notepad ++, then edit them all at once, then save them all at once - very handy program, this - then load them all at once in FB2K.  It's still chugging away at a couple of them after 20 minutes but mostly done.  Playlist Revive sadly couldn't bring them back from the dead.  Once I figured out the process it was really quick and easy.

  • studio13
  • [*]
Re: I need to update path names for files in foobar2000's playlists
Reply #16
I had the same problem where I had to move the files from one drive to another so the drive letter and path changed. Initially I had tried to 'Save Playlist' using the default file type ".fpl" . When I edited ".fpl" with notepad in windows they would break. However using the tips here in this thread I was able to easily recover playlists where the file path had changed using the following steps :
  • Foobar - Selected a playlist, and choose save playlist from the dropdown
  • Foobar - When the save playlist window pops up change the 'save as type' from .fpl to .m3U
  • Notepad ++ - Edit the file path in one or many playlists
  • Foobar - Load playlist from the dropdown menu
Thanks to all the original comments they helped a lot !!

  • MGriffin
  • [*]
Re: I need to update path names for files in foobar2000's playlists
Reply #17
I ran into the same problem. I copied my music and my foobar installation to another computer with a different file structure, while changing my foobar from static to a portable installation. Everything worked fine, except the playlist handling.  I have aprox. 2000 playlists and cannot revieve all of them one by one with "playlist revive", or use the workaround with exporting the  *.flp to *.m3u - it's simply much too time comsuming.
So I am searching for some kind of batchprocessing tool that exchanges _all_  paths within *.flp-files (eg "c://users/Max/music" to "d://djcoll". Does anyone have a tip for me?