Any chance you could also add "Restart Media Center and Media Server" as an option too? I know it's really only saving a few clicks, but this is generally what I do when I'm testing out custom views for JRemote.
You can use this:
' glynor's MC-Quit_Relaunch_Server.vbs script
' ************************************************************************************************************
' ************************************************************************************************************
' PURPOSE: Quits and relaunches MC in Media Server Mode..
' ************************************************************************************************************
' RELEASE NOTES:
' ************************************************************************************************************
' 1.0.0 (2020-07-19)
' http://glynor.com/files/MCUtilities/
' 1. Initial Release
'Create our handy dandy Shell object
set WshShell = WScript.CreateObject("WScript.Shell")
'Quit MC Entirely
WshShell.Run "MCcl.exe /Close"
'Wait a minute
WScript.Sleep 60000
'Relaunch MC in MediaServer Mode
WshShell.Run "MCcl.exe /MediaServer"
I run that via Task Scheduler daily at 4am on my server (to trigger it to be able to do it's backups and to let my automated Handheld syncs work properly). It has been working great for a couple months now.
Notes:
* As written, this script requires MCcl.exe to be installed (
part of my MCUtilities pack) but you can just replace all of the MCcl.exe lines with MC27.exe, or whatever version you're using, to avoid that requirement. (MCcl.exe is nice though if you'll keep using the script long-term though, as it prevents you from having to re-edit them each time you upgrade to a new MC version.)
* This relaunches MC into Media Server mode. If you want it to launch full MC instead, change the
/MediaServer part of the last line to
/Start instead.
* I had to tweak the delay before the restart a bit to get it to work well. It is currently set to 1 minute (60 * 1000ms), which gives MC time to fully shut down before trying to restart it on my server. You might be able to reduce that a bit depending on your situation.