INTERACT FORUM

Please login or register.

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

Author Topic: help with command line argument TREEVIEW  (Read 2597 times)

buffalome90210

  • Recent member
  • *
  • Posts: 19
help with command line argument TREEVIEW
« on: April 13, 2010, 06:09:46 pm »

I am attempting to automate a function key to start a smartlist playlist. The end result will be automation via autohotkey...BUT I can't even get a Batch file to execute the TREEVIEW appropriately...Once I establish that I will move to incorporate into autohotkey.

AS I understand it, the Batch file should look as follows
cd "c:\Program files\J River\Media Center 14"
"media center 14" /PlayReplace TREEVIEW=Playlists\Smartlists\Smartlist1

I believe this has something to do with the way the batch file interprets the commandline parameters ? am I missing Quotes and if so where ?

when executed on a dos batch window the above will open the media center but will not navigate to the playlist nor play it.

I have verified spelling and case sensitivity


Terence

Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4583
Re: help with command line argument TREEVIEW
« Reply #1 on: April 13, 2010, 06:32:32 pm »

you should use
mc14.exe /PlayReplace TREEVIEW=Playlists\Smartlists\Smartlist1
mc14.exe lives in the system32 (on xp) and windows knows when to use it.
this command alone will also startup mc.

 :)
gab

edited a bit...
Logged

buffalome90210

  • Recent member
  • *
  • Posts: 19
Re: help with command line argument TREEVIEW
« Reply #2 on: April 14, 2010, 06:24:21 am »

ok, I got the mc15.exe and understand.......problem still present

I tried it just as you stated and it opens media center and navigates me to Now playing tree node, nothing currently is playing.

I also tried variations such as mc14.exe /Play TREEVIEW=Playlists\Beach1

and many other..results are the same......is it possible that I have a startup option set which is prohibiting this to work ?

have you any thoughts on what experiments i might try to diagnose this ?

My other option would be to export ALL playlists.. then I could (and Can) play a specific playlist ie

C:\Documents and Settings\Terence\Application Data\J River\Media Center 14\MASTER100\Playlists\Smartlists\Smartlist1.m3u only problem with this is one of my criteria for this playlist is to play random, hence the randomness will only exits in the TREE structured smartlist...as the exported smartlists are static and frozen based upon their state at export time.

worst comes to worst , i guess i could build a script to export all playlists at startup time which would simulated the randomness.


terence
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4583
Re: help with command line argument TREEVIEW
« Reply #3 on: April 14, 2010, 06:32:12 am »

no it should work. i just tried
mc15.exe /PlayReplace TREEPATH=Playlists\Remote\Remote9
works. are you doing that from a bat file or from a shortcut?
i remember that there was a problem before and this was the solution then
mc15.exe /PlayReplace TREEPATH=Playlists\\Remote\\Remote9
 :)
gab


ohhh.. i see. you use TREEVIEW. should be TREEPATH.
im sorry was not awake..
Logged

buffalome90210

  • Recent member
  • *
  • Posts: 19
Re: help with command line argument TREEVIEW
« Reply #4 on: April 14, 2010, 12:49:12 pm »

TY very much , it was the TREEPATH vs TREEVIEW.......been workin in Ms Access code a bit toooo long.

Terence
Logged
Pages: [1]   Go Up