Sign in to follow this  
Followers 0
oleg

Send Status To Service Manager

4 posts in this topic

Is there a way to send commands to service manager from autoit ?

Im creating small server application that will run as a service but have no idea how to send service status to service manager . Im using WMI to install server application as a serivice .

Any :lmao: ?


There is a hex ( 31303030303030 ) reasons i love AutoIt !

Share this post


Link to post
Share on other sites



How would you do it if you weren't using AutoIt?


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Well i could buy a book about writing windows services :lmao:

Dont know really .... For some reason i didnt manage to make autoit.exe to run as service without using other tools and this is something that i dont want o:)

When service is started it reports that service didnt start in timely fashion :king: Any ;)

Edited by oleg

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Share this post


Link to post
Share on other sites

Well i could buy a book about writing windows services :lmao:

Dont know really .... For some reason i didnt manage to make autoit.exe to run as service without using other tools and this is something that i dont want o:)

When service is started it reports that service didnt start in timely fashion :king: Any ;)

Give it some time to see ;-) Add sleep(5000) to the start of the script. 5 seconds should be enough I guess. I made some experiments with script running as service and when it started "too quickly" (or maybe the end was too sudden :-\ it wrote an error after typing net start myscriptservice. After adding this pause it correctly wrote the service was started succesfully.

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