ChrisL Posted August 6, 2014 Share Posted August 6, 2014 (edited) I need to know if a service is still running or not I can use ServiceControl.au3 and _ServiceRunning(@computername,"stisvc") but is there a way of getting an event notification that a service is starting or stopping without keep manually checking? Thanks Edited August 6, 2014 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 6, 2014 Moderators Share Posted August 6, 2014 You would configure this on the service itself. Under the properties menu, under fist failure, you can run an application or script to notify you. If it is a service you are creating, I believe you can also set an external application as a dependency, but I would have to look into whether that has changed since XP. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
ChrisL Posted August 7, 2014 Author Share Posted August 7, 2014 Thanks, not sure that will work as it's another application is stopping and starting the service and I have an event listener on the WIA service, if another application stops and starts the service the event listener no longer works. So the service isn't actually failing. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now