INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: export directories and files, based on playlist, to a storage device  (Read 2018 times)

Butters

  • Recent member
  • *
  • Posts: 47

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.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: export directories and files, based on playlist, to a storage device
« Reply #1 on: September 19, 2017, 08:54:49 pm »

Yes, using either of the Rename, Move, & Copy Files or the Sync Handheld functions.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Butters

  • Recent member
  • *
  • Posts: 47
Re: export directories and files, based on playlist, to a storage device
« Reply #2 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!
Logged

Spike1000

  • Citizen of the Universe
  • *****
  • Posts: 641
Re: export directories and files, based on playlist, to a storage device
« Reply #3 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

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: export directories and files, based on playlist, to a storage device
« Reply #4 on: September 20, 2017, 02:25:13 am »

Good. Have a look at using the [filename (path)] tag, as well. The Filefolder() 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.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner
Pages: [1]   Go Up