name15 Posted November 27, 2009 Share Posted November 27, 2009 HOW TO Start or Stop or pause or resume or restart the services and change start up type Link to comment Share on other sites More sharing options...
EndFunc Posted November 27, 2009 Share Posted November 27, 2009 (edited) HOW TO Start or Stop or pause or resume or restart the services and change start up type Try something like this to stop and restart services. #include <Process.au3> $StopService = _RunDos("net stop servicename") $StartService = _RunDos("net start servicename") Edited November 27, 2009 by EndFunc EndFuncAutoIt is the shiznit. I love it. Link to comment Share on other sites More sharing options...
Fire Posted November 27, 2009 Share Posted November 27, 2009 For usage try this from command line:start =>run => type cmd.exe => sc /? ;all about services.for listing sc queryfor stop service syntax: sc stop servicenamefor pause sc pause servicename:for start again service sc start servicenameFor execute this command from autoit script:run("cmd.exe /c sc stop someservice", "", @SW_HIDE) [size="5"] [/size] 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