This would be a more efficient way to get the desired outcome:

PHP code:
--------------------
    
  if (Win32::Service::GetStatus( '',$key, \%status)) {
  print "$key is present\n";
  } else {
  print "$key is not present\n";
  }
  
--------------------


$key needs to be the shortname of the service, not the slim.exe name.


-- 
stinkingpig

"That which does not kill you makes you bitter and cynical." -- Too Much
Coffee Man
------------------------------------------------------------------------
stinkingpig's Profile: http://forums.slimdevices.com/member.php?userid=547
View this thread: http://forums.slimdevices.com/showthread.php?t=32257

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

Reply via email to