INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: kstuart on January 02, 2013, 12:00:08 pm

Title: Command line syntax to play folder ?
Post by: kstuart on January 02, 2013, 12:00:08 pm
The usual command line syntax used by some other players to play a folder, doesn't seem to be working for me:

Quote
"C:\Windows\System32\MC18.exe" /Play "%1"

What will work ?

Thanks !
Title: Re: Command line syntax to play folder ?
Post by: MrC on January 02, 2013, 12:07:57 pm
Some options such as import variants accept paths, others take playitems which do not include folders.  See:

   http://wiki.jriver.com/index.php/The_Command_Line (http://wiki.jriver.com/index.php/The_Command_Line)
Title: Re: Command line syntax to play folder ?
Post by: kstuart on January 02, 2013, 12:12:09 pm
Yes, I did read that page first.  The playitems example has:

"C:\path\to\file.flac"

so can I use something like:

" C:\path\to\*.* "

in some sort of way ?

Title: Re: Command line syntax to play folder ?
Post by: MrC on January 02, 2013, 12:58:01 pm
Not like that.  Windows command shell doesn't expand paths that way.  Here's an explanation:

   http://superuser.com/questions/460598/is-there-any-way-to-get-the-windows-cmd-shell-to-expand-wildcard-paths (http://superuser.com/questions/460598/is-there-any-way-to-get-the-windows-cmd-shell-to-expand-wildcard-paths)

with possible workarounds for you.
Title: Re: Command line syntax to play folder ?
Post by: glynor on January 02, 2013, 03:29:31 pm
It would make a lot more sense to simply make a Smartlist (or View) that looks for the files, and then play that with:

/Play TREEPATH=Playlists\MyPlaylist

The files would have to be imported first, but just use AutoImport (and set a flag on the files at import if you don't want them "polluting" your main Library views).
Title: Re: Command line syntax to play folder ?
Post by: kstuart on January 05, 2013, 02:04:28 pm
Does the command line allow two options, or do you have to issue two separate commands ?

For example, can you have:

MC18.exe /Library <library name> /Import <paths>

?
Title: Re: Command line syntax to play folder ?
Post by: MrC on January 06, 2013, 01:40:27 am
I think you need two separate calls, one per /Option.  Some /Options support multiple arguments.
Title: Re: Command line syntax to play folder ?
Post by: 6233638 on April 14, 2013, 07:36:47 pm
Any chance of having this added? Seems like a strange omission.