roofninja 0 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 !!! Share this post Link to post Share on other sites
omikron48 0 Posted November 10, 2010 You can use the Run function for running batch commands. e.g. Run('net start "print spooler"') Share this post Link to post Share on other sites
sahsanu 28 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 Share this post Link to post Share on other sites
SublimePorte 0 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. Share this post Link to post Share on other sites