indifference_engine;394577 Wrote: 
> Hi, I want to use the restart squeezecenter feature of
> ServerPowerControl on Windows.  I have created a vbscript that uses WMI
> to get hold of the SC service, send it the stop signal, wait until the
> service acually stops, send the start signal, wait until SC actually
> restarts and post an entry in the event log.  The script works fine
> when run from the command-line.  However, when triggered from my duet
> controller I see SqueezeCenter and SqueezeMySQL stop, then SC goes to
> starting and MySQL starts (so far so good). Then MySQL stops and SC
> stops again.  The event viewer shows MySQL starting and stopping and
> shows an error saying that SC couldn't start because it's already
> running and there is no entry in the event viewer from my script.  I'm
> willing to post the vbscript I used if it helps.
> 
> Has anyone else had problems with this or know a way to make it work in
> XP?
> 
> Thanks.
OK, I have an interim solution for this.  I've posted a new version of
SCPowerTool.exe at the head of the thread.  This version includes a
quickly hacked in undocumented arg: "--screstart".  To make this option
work you MUST invoke SCPowerTool.exe with the StartHidden.exe utility
that is also in the SCPowerTool.exe zip file.

You'll need to copy the SCPowerTool.exe and StartHidden.exe files to
some folder on your path, e.g. C:\Windows.  Then, in the SrvrPowerCtrl
plugin settings, set the "Restart SqueezeCenter Command" to:

Code:
--------------------
    
  c:\windows\system32\cmd.exe /C start /B starthidden.exe scpowertool.exe 
--screstart --log
  
--------------------

Remember, this ONLY works if SqueezeCenter is configured to run as a
service.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to