INTERACT FORUM

More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: Butters on September 19, 2017, 08:26:43 pm

Title: export directories and files, based on playlist, to a storage device
Post by: Butters on September 19, 2017, 08:26:43 pm
Greetings,

Based on a playlist, I want to export (or copy) numerous files to a storage device (like a thumb drive), and I want the copied files (the new files) to maintain the same directory structure as the source files.

My music files are stored in a directory structure by 1) Artist, 2) Album, 3) Songname.flac
(I attached a photo of an example)

I have a playlist of exactly which songs that I want to copy to the storage device.  But when I attempt, via Media Center, to copy the files, only the files get copied, and not their directories and sub-directories.  I end up with a list of .flac files all copied into only one directory, giving me a mix of every artist and album all in one directory.

My goal is to get Media Center to do the equivalent of the Windows "xcopy /s" command, based on my playlist.

Can this be done?

Thank you.
Title: Re: export directories and files, based on playlist, to a storage device
Post by: RoderickGI on September 19, 2017, 08:54:49 pm
Yes, using either of the Rename, Move, & Copy Files (https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files) or the Sync Handheld (https://wiki.jriver.com/index.php/Sync_Handheld) functions.
Title: Re: export directories and files, based on playlist, to a storage device
Post by: Butters on September 19, 2017, 11:37:02 pm
That worked.  Thanks!

It was not perfect, though.

I got the best result when I included "FilePath()" as a directory rule.
The tool inserted an extra "E_" directory, denoting the source drive.  I could not find a way to get around that.

But that was easily corrected/removed after my files were copied, leaving me with exactly what I needed.

By the way, how did you include the "Rename, Move, & Copy Files" hyperlink to display the way you did in your reply?
I am asking, because when I try to do so, it shows up as:
https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files

Thanks again!
Title: Re: export directories and files, based on playlist, to a storage device
Post by: Spike1000 on September 20, 2017, 02:12:27 am
By the way, how did you include the "Rename, Move, & Copy Files" hyperlink to display the way you did in your reply?
I am asking, because when I try to do so, it shows up as:
https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files

You need to tweak the 'insert URL' code a little; here's the example from my footer:

Code: [Select]
[url=https://yabb.jriver.com/interact/index.php/topic,111775.0.html]MC Tutorial Videos[/url]
Spike
Title: Re: export directories and files, based on playlist, to a storage device
Post by: RoderickGI on September 20, 2017, 02:25:13 am
Good. Have a look at using the [filename (path)] tag, as well. The Filefolder() (https://wiki.jriver.com/index.php/File_Path_and_Identifier_Functions#FileFolder.28.E2.80.A6.29) is sometimes useful as well.

Usually it is best to build up the directory structure using tags, rather than try to copy the path using the various methods to do so. For example, I use the following expression for the Audio Path when I sync to a hard drive directory, which I later copy to an iPhone;

[Album Artist (auto)]\[Album]\IF(isempty([Disc #], "", 1), , [Disc #]\)\

Which will give something similar to your requirement of "\Artist\Album\Filename", except that it adds a disc number if the album has multiple discs, and it uses the [Album Artist (auto)] tag instead of the straight [Artist] tag. i.e. "\Artist\Album\Disc #\Filename"



Spike beat me on the URL thing, but my example was already written, so here it is;

Code: [Select]
Yes, using either of the [url=https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files]Rename, Move, & Copy Files[/url] or the [url=https://wiki.jriver.com/index.php/Sync_Handheld]Sync Handheld[/url] functions.
There is a button up above, second row, second from the left. Clicking is inserts the codes [url][/url], or you can type them directly.