PDA

View Full Version : Starting MediaMVP Server from batch file



rjmitche
2004-08-06, 12:11 AM
Hi there - I'm loving this software! Great job!

A couple (hopefully) quick questions for you:

1. What would be the correct command to start the GB-PVR MediaMVP Server from a batch file?

2. Is there any way to minimize the GB-PVR MediaMVP Server window to the system tray rather than the task bar? It's too easy for the wife to accidentally close it when it's hanging around in the task bar.

Thanks and keep up the GREAT work! http://gbpvr.com/iB_html/non-cgi/emoticons/biggrin.gif

sub
2004-08-06, 12:46 AM
1) gbpvr.exe -mvpmode

2) No, it automatically starts minimized but it still appears as a regular task in the task list.

DaWulf
2004-08-07, 09:03 AM
Quote[/b] (sub @ Aug. 05 2004,20:46)]No, it automatically starts minimized but it still appears as a regular task in the task list.

@rjmitche

Check around on some of the file download archives (like Simtel). *There are utils out there that will turn almost any app into a tray app.....


Wulf

teris
2004-08-08, 01:22 PM
Hi,

I've a solutions for this:

With Firedeamon I've created a gbpvr-mvp system-service.
Together with my small webserver an this php-script I can switch between MVP and GBPVR-MVP via WAP-Handy or PDA:

<?

if ($aktion=="mvp")
{
echo "switch to mvp-mode...\n<br>";
flush;
//Stop MVP-Software
echo exec("net stop MVPMediaSvc");
echo exec("net stop MVPMedia");
//Stop GBPVR-Software
echo exec("net stop gbpvrmvp");

//Start MVP-Software
echo exec("net start MVPMediaSvc");
echo exec("net start MVPMedia");
echo "mvp server started\n<br>";
echo date("d.m H:i");
}

if ($aktion=="gbpvr")
{
echo "switch to mvp-mode...\n<br>";
flush;

//Stop MVP-Software
exec("net stop MVPMediaSvc");
exec("net stop MVPMedia");
//Stop GBPVR-Software
//Start gbpvr
exec("net start gbpvrmvp");
echo "gbpvr server started\n<br>";
echo date("d.m H:i");
}

if ($aktion=="")
{
echo "Keine Aktion gewählt.";
}
?>

Thats very fine, because I can restart the service when GBPVR-MVP crashes or I want wo view files in other formats like divx.

Bye,
Sebastian