Is it possible to stop a windows service with sikuli?

Asked by Shawn Robertson

I have tried searching the python documentation and the answers launchpad answers as well as google but just cant seem to find if its possible, maybe that means its not?

I have a service I want to stop so that i can delete a folder that contains that files that are using that service. I have a script that deletes a folder in windows but we have since made a change and added a service that runs and I can no longer delete the folder since files in that folder are using a service thats running.

I can see that in newer versions of Python there are modules such as win32serviceutil but we dont have access to that unfortunately with Sikuli.

does the OS module support this? or subprocess?

Id rather not have to automate this with clicks and dialogs of the service.msc but I suppose thats a work around if I have to.

Thanks for any and all help!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I guess, the easiest solution is to setup a command script, that does the job, and call that using os.popen/subprocess.

Can you help with this problem?

Provide an answer of your own, or ask Shawn Robertson for more information if necessary.

To post a message you must log in.