Jump to content
Sign in to follow this  
gc dublin

Check if a service or process exists

Recommended Posts

gc dublin

Hi, I see there is a check for if a process exists, how do I check if a service running or existing?

Thanks

Greg

Share this post


Link to post
Share on other sites
Jos

Hi, I see there is a check for if a process exists, how do I check if a service running or existing?

Thanks

Greg

ProcessExists() ?

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
gc dublin

ProcessExists() ?

I have seen processexists but I need to check if a service exists.

Thanks.

Greg

Share this post


Link to post
Share on other sites
Jos

I have seen processexists but I need to check if a service exists.

Thanks.

Greg

There is a UDF in the scripts&scraps that can do all kinds of tasks on services...

check here


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
dabus

$servicename="give me a name please"

Run (@comspec & ' /c sc query '&$servicename, '', @sw_hide)

guess what's missing? If you don't now, search for stdout and stderr.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×