Search Results

Search found 2 results on 1 pages for 'bretts'.

Page 1/1 | 1 

  • Stopping a service and waiting in VBScript

    - by BrettS
    How can I stop a service and wait for it to finish stopping in vbscript? I've got this so far: For Each objService in colServiceList If objService.DisplayName = "<my display name>" Then objService.StopService() End If Next Googling turned up a suggestion of using objService.WaitForStatus( ServiceControllerStatus.Stopped ), but running that gives me an error of "Object required: 'ServiceControllerStatus'".

    Read the article

1