oleg Posted January 21, 2006 Share Posted January 21, 2006 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 ? There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
DaveF Posted January 21, 2006 Share Posted January 21, 2006 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. Link to comment Share on other sites More sharing options...
oleg Posted January 21, 2006 Author Share Posted January 21, 2006 (edited) Well i could buy a book about writing windows services 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 When service is started it reports that service didnt start in timely fashion Any Edited January 21, 2006 by oleg There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
LoWang Posted February 9, 2006 Share Posted February 9, 2006 Well i could buy a book about writing windows services 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 When service is started it reports that service didnt start in timely fashion 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now