INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: Mastiff on December 25, 2012, 11:28:54 am

Title: What has changed in the implementation of MCxx.exe commands?
Post by: Mastiff on December 25, 2012, 11:28:54 am
I have been using MCC commands for a few versions, and it's worked nicely all along. Suddenly there nothing's working here, and I found out why: Earlier I was using a command in Girder (with a variable MC-version set to c:\windows\system32\mccc.exe) which in the new version would be:

Code: [Select]
c:\windows\system32\mc18.exe "/MCC 10000,16777216"
This toggles pause on zone 0. But now this isn't working, and I have to change that to:

Code: [Select]
c:\windows\system32\mc18.exe /MCC 10000,16777216
Note the missing " at the beginning and end of the argument. Is this an intentional change, or is it accidental? In other words do I need to go through each command on every zone on three computers (two at home and one at the cabin, so all in all a bunch of zones) for this change?
Title: Re: What has changed in the implementation of MCxx.exe commands?
Post by: Matt on December 25, 2012, 11:32:40 am
All the command line parsing was recently rewritten.

In the case of /MCC, the /MCC is one argument and the command (numbers) are a second argument.

If you put them all in quotes, it forces the parser to treat it as a single argument so it won't understand.

So, this seems best:
/MCC 10000,16777216

Or if you want/need quotes:
/MCC "10000,16777216"

Or if you really like quotes:
"/MCC" "10000,16777216"
Title: Re: What has changed in the implementation of MCxx.exe commands?
Post by: Mastiff on December 25, 2012, 11:34:59 am
Holy hyperspeed, Batman! I'm impressed! Thanks for the quick answer! I expected a reply to this during the end of the week. ;) OK, then. Does that mean that if I change all those now I won't risk having to do that again for the next version? Please say yes...
Title: Re: What has changed in the implementation of MCxx.exe commands?
Post by: Matt on December 25, 2012, 11:59:48 am
Does that mean that if I change all those now I won't risk having to do that again for the next version? Please say yes...

Edit away.  The parser won't change again.

Sorry if this made your life complicated.  It wasn't intentional, I promise.
Title: Re: What has changed in the implementation of MCxx.exe commands?
Post by: Mastiff on December 25, 2012, 12:01:13 pm
OK, I can probably live with a couple of hours work tonight... :) Thanks for answering.
Title: Re: What has changed in the implementation of MCxx.exe commands?
Post by: Matt on December 25, 2012, 12:08:25 pm
We could also update the /MCC command parser to special case the numbers being bundled into the same parameter.  It wouldn't happen until next week, so you let us know what you prefer.
Title: Re: What has changed in the implementation of MCxx.exe commands?
Post by: Mastiff on December 25, 2012, 12:10:03 pm
Thanks a lot for the offer, but that won't be necessary. I'm already 1/3 through the work of changing the stuff (Christmas day is allways boring anyway), so I'll be OK.