In JAL use ServiceStop "MyService1" ServiceStart "MyService1" Please note that "MyService1" here is the unique service name as it is registered with the system and not the "display name" appearing in the Control Panel which could be different from the real service name. If you rather would like to use display names then do the following: Dim pid, number RunAndWait "net /STOP \"My Service Name 1\"", "", 0, pid RunAndWait "net /START \"My Service Name 1\"", "", 0, pid : I simply need to stop then start a few services with 24x7. : Can I get the syntax? In JAL or VBS, it doesnt matter.
|