roofninja Posted November 10, 2010 Share Posted November 10, 2010 I have done some searching through the forums and I am not sure if there are any internal commands in autoit for it, but I have to ask. Are there any internal commands that will do a net start or net stop like you can in a bat file? RUN . . . Slide . . . TAG . . . Your out . . . PAINTBALL !!! Link to comment Share on other sites More sharing options...
omikron48 Posted November 10, 2010 Share Posted November 10, 2010 You can use the Run function for running batch commands. e.g. Run('net start "print spooler"') Link to comment Share on other sites More sharing options...
sahsanu Posted November 10, 2010 Share Posted November 10, 2010 Are there any internal commands that will do a net start or net stop like you can in a bat file?Maybe you want to take a look to Link to comment Share on other sites More sharing options...
SublimePorte Posted November 10, 2010 Share Posted November 10, 2010 Best way is to use WMI.Here's an example:$objWMI = ObjGet("winmgmts:\\localhost\root\cimv2") $srvcName = "Spooler" $services = $objWMI.ExecQuery ("Select * from Win32_Service Where Name ='" & $srvcName & "'") For $srvc in $services $srvc.StartService() NextAnd here's the Microsoft Doco that tells you how to use WMI: Win32_Service ClassEnjoy. 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