Sign in to follow this  
Followers 0
gc dublin

Check if a service or process exists

5 posts in this topic

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



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                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

$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  
Followers 0