User Tools

Site Tools


kladder:smarken.dk:home:windows:autoit:stop_and_start_services_in_a_script

Content-Type: text/x-zim-wiki Wiki-Format: zim 0.4

https://www.autoitscript.com/forum/topic/134959-stop-and-start-services-in-a-script/

https://www.autoitscript.com/forum/topic/4591-startstop-a-service/ RegWrite(“HKLM\System\CurrentControlSet\Services\{servicename}\Start”………

:::::::: * ::::: regdelete(“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentControlSet\Services\xxxxxxxxx”)

regdelete(“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentControlSet\Enum\Root\xxxxxxxxxxxxx”)

where the x are service name.

To stop the service :

RunWait(@ComSpec & “ /c ” & 'net stop <service>', “”, @SW_HIDE) works fine.

kladder/smarken.dk/home/windows/autoit/stop_and_start_services_in_a_script.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki