bakker_be wrote: 
> Hi Dan,
> actually Windows should take care of that for you, though it's of course
> possible to do this check through some kind of command line batch. Copy
> paste the following code into notepad and save it as
> CHECK_RESTART_LMS.BAT somewhere you can remember.
> > 
Code:
--------------------
  >   > 
  > @ECHO OFF
  > for /F "tokens=3 delims=: " %%H in ('sc query "logitechmediaserver" ^| 
findstr "        STATE"') do (
  > if /I "%%H" NEQ "RUNNING" (
  > REM Put your code you want to execute here
  > REM For example, the following line
  > net start "logitechmediaserver"
  > )
  > )
  > 
--------------------
> > 
> First test this on a command prompt (same process as before to obtain
> it). If you have no administrative rights on your PC you'll get a
> message like this:
> > 
Code:
--------------------
  >   > 
  > C:\Users\username\Desktop>CHECK_RESTART_LMS.BAT
  > System error 5 has occurred.
  > 
  > Access is denied.
  > 
--------------------
> > 
> If instead you get a success this message you already have
> administrative rights, and you can just doubleclick
> CHECK_RESTART_LMS.BAT from now on to do its job.
> Otherwise you'll need an "elevated command prompt": just click the
> start button/hit the windows key on your keyboard and type CMD. You'll
> get search results, one of which will be "Command Prompt", right-click
> it and choose "Run as administrator" and run you file again from the
> location where you saved it (easiest is to just drag and drop it onto
> this window).
> You should get a success message. If you do, next time no need to go
> through all this, just right-click CHECK_RESTART_LMS.BAT and directly
> choose "Run as administrator".
> I don't have LMS installed on Windows anymore, so the service name
> "logitechmediaserver" could be wrong. If you start task manager and go
> to the "Services" you'll be able to find the name. It's possible that
> you need to either click "More details" to show this tab, depending on
> you Windows version.

Thanks very much, appreciate the thorough response. 

I'll give this a try, but my first obstacle is that I do not see lms
running as a service, when I check the task manager "Services" tab (even
in 'more details').
I do have the lms running and I do see it in the task manager listed
under "background processes", along with the tray icon, I see:
Logitech Media Server (32 bit)
Logitech Media Server Tray Icon (32bit)

Do you recommend I setup the first one as a windows service? Will that
mess up any existing workflow (ie: the tray icon and web control turning
it on and off as it does currently)?

Also, if this is not relevant conversation for this forum, I can pm you
directly. 

Anyone know if there are 64 bit versions of these apps? I'm running 64
bit and can't imagine that's related to my original issue, but worth
asking. 

Thanks very much,
Dan


------------------------------------------------------------------------
danmalks's Profile: http://forums.slimdevices.com/member.php?userid=67965
View this thread: http://forums.slimdevices.com/showthread.php?t=108898

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

Reply via email to