Sign in to follow this  
Followers 0
shadowkenshin

Script that could start & stop a specified service.

3 posts in this topic

Hello guys,

Is there someone who can help me giving a code which could Start & Stop a specified Service? I'm not familiar with APIs. Calling the "Net Start/Stop Servicename" commandline is not a good option for me (i hate those Y/N questions).

Many thanks.

Share this post


Link to post
Share on other sites



Hello guys,

Is there someone who can help me giving a code which could Start & Stop a specified Service? I'm not familiar with APIs. Calling the "Net Start/Stop Servicename" commandline is not a good option for me (i hate those Y/N questions).

Many thanks.

the following uses beta version of autoit, there may be other ways http://www.autoitscript.com/forum/index.ph...ndpost&p=124251


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Thanks qafrost for the code & quick reply , but it seems does not for for me. Got an error :

if($s_pcnames <> $LV_ERR) then

If(^ERROR

Error: Variable used without being declared.

Well, maybe I'm just too sleepy. I'll just check after I wakeup..

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