INTERACT FORUM

Please login or register.

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

Author Topic: Command line syntax to play folder ?  (Read 1542 times)

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Command line syntax to play folder ?
« 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 !

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Command line syntax to play folder ?
« Reply #1 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
Logged
The opinions I express represent my own folly.

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: Command line syntax to play folder ?
« Reply #2 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 ?

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Command line syntax to play folder ?
« Reply #3 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

with possible workarounds for you.
Logged
The opinions I express represent my own folly.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Command line syntax to play folder ?
« Reply #4 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).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: Command line syntax to play folder ?
« Reply #5 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>

?

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Command line syntax to play folder ?
« Reply #6 on: January 06, 2013, 01:40:27 am »

I think you need two separate calls, one per /Option.  Some /Options support multiple arguments.
Logged
The opinions I express represent my own folly.

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Command line syntax to play folder ?
« Reply #7 on: April 14, 2013, 07:36:47 pm »

Any chance of having this added? Seems like a strange omission.
Logged
Pages: [1]   Go Up