AdamUL Posted November 27, 2019 Posted November 27, 2019 Try doubling up the double quotes. Global $sServiceName = '""Intell Processing Service""' Adam
orbs Posted November 27, 2019 Posted November 27, 2019 are you certain there should be two l's in there? Earthshine and seadoggie01 1 1 Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Earthshine Posted November 27, 2019 Posted November 27, 2019 Yeah I bet it’s spelled wrong My resources are limited. You must ask the right questions
shital Posted December 5, 2019 Author Posted December 5, 2019 #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile_type=a3x #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <Services.au3> Global $sServiceName = '""Intellisys Processing Service""' Global $sComputer = "eitl66" ;Check the status of the service, if it is stopped, start it. Global $aService = 0 Do $aService = _Service_QueryStatus($sServiceName, $sComputer) If @error Then Exit 1 If $aService[1] = $SERVICE_STOPPED Then If Not _Service_Start($sServiceName, $sComputer) Then Exit 2 EndIf Sleep(500) ;Wait 500 ms. Until $aService[1] = $SERVICE_RUNNING not working tested again .spelling is right . its work for service without space
AdamUL Posted December 5, 2019 Posted December 5, 2019 I'm not sure how to help you. I do not have any service names on my PC with spaces in them to test with. Theoretically, some quote combination should work. You said this didn't work. Global $sServiceName = "Intell Processing Service" or this, Global $sServiceName = '"Intell Processing Service"' or this. Global $sServiceName = '""Intell Processing Service""' Maybe this will work? Global $sServiceName = '"""Intell Processing Service"""' Adam
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