Jump to content

Recommended Posts

Posted

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.

Posted

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.

 

Posted

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..

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
×
×
  • Create New...