INTERACT FORUM

Please login or register.

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

Author Topic: Command line/batch to run MC23 + Server?  (Read 1496 times)

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1392
Command line/batch to run MC23 + Server?
« on: February 21, 2018, 06:40:26 pm »

Tools/Options/Startup/Run on windows startup:
-Nothing
-Media Center
-Media Server
-Media Center and Media Server

When this option is set to "Media Center and Media Server", if I double-click the MC desktop shortcut, everything starts up fine. But if I set the option to "Nothing", only MC starts up (no Server etc). Normal/intended behavior. Fine.


I want to set the above option to "Nothing" and then use a command argument or batch file that will run MC + Server (load library and start all needed services) - simulate the "Media Center and Media Server" option. Any ideas how I can accomplish this?
Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72534
  • Where did I put my teeth?
Re: Command line/batch to run MC23 + Server?
« Reply #1 on: February 21, 2018, 07:04:48 pm »

Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Command line/batch to run MC23 + Server?
« Reply #2 on: February 21, 2018, 07:51:34 pm »

mc23.exe /start
mc23.exe /mediaserver

Would start MC maximised and in focus with the default library loaded.

More here: https://wiki.jriver.com/index.php/The_Command_Line

Such as loading a specific a specific library;
mc23.exe /library <library name>

Its a pity you can't put more than one command on each command line, just a command and its parameters, otherwise you could do this;

mc23.exe /start /library <library name> /mediaserver

But alas, that doesn't work. So a shortcut that calls a batch file it is for you.  ;)
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

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1392
Re: Command line/batch to run MC23 + Server?
« Reply #3 on: February 21, 2018, 08:33:51 pm »

mc23.exe /start
mc23.exe /mediaserver

Test on laptop seems to work. Will try it on Server PC tomorrow.

Thanks
Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300
Pages: [1]   Go Up