Terminate service error
Posted: Tue Sep 18, 2007 8:12 am
I am running into an issue where a service that is started by robotask (e.g. start a program) outputs an 'Access Denied' error when the script issues the "Terminate Service" command.NOTE: if I manually run the program (in this case Internet Explorer) and issue the "Terminate Service" command, the service exits successfully.Here is the script:;**********************;* RoboTask Task file *;* Do not edit! *;********************** [Root]ActionAfterRun=INTEGER|0Actions=FOLDERAutomat=INTEGER|0CatID=INTEGER|0ContinueOnError=INTEGER|0ExternalName=STRING|"Task1"Hide=INTEGER|0ID=INTEGER|758566932Name=STRING|"Run ""iexplore.exe""..."Priority=INTEGER|3RunOnClose=INTEGER|0RunOnStartup=INTEGER|0ToLog=INTEGER|3[Actions]Action1=FOLDERAction2=FOLDERAction3=FOLDERAction4=FOLDERAction5=FOLDERAction6=FOLDERAction7=FOLDER[Actions\Action1]ActionID=STRING|"A_GENERAL_RUN_PROG"Enabled=INTEGER|-1Name=STRING|"Run ""iexplore.exe"""Params=FOLDER[Actions\Action1\Params]params=STRING|"http://www.google.com"program=STRING|"C:\Program Files\Internet Explorer\iexplore.exe"runas=STRING|"0"wait=STRING|"0"[Actions\Action2]ActionID=STRING|"A_GENERAL_PAUSE"Enabled=INTEGER|-1Name=STRING|"Delay 2000 ms"Params=FOLDER[Actions\Action2\Params]delay=STRING|"20"[Actions\Action3]ActionID=STRING|"A_WINDOW_CHECK"Enabled=INTEGER|-1Name=STRING|"Check for Window"Params=FOLDER[Actions\Action3\Params]abortif=STRING|"0"action=STRING|"1"checkfor=STRING|"0"exact=STRING|"0"variable=STRING|"window_avail"wincaption=STRING|"Google - Windows Internet Explorer"[Actions\Action4]ActionID=STRING|"A_FLOW_IF"Enabled=INTEGER|-1Name=STRING|"If Then"Params=FOLDER[Actions\Action4\Params]case=STRING|"0"operator=STRING|"0"type=STRING|"3"value1=STRING|"{window_avail}"[Actions\Action5]ActionID=STRING|"A_INET_SENDMAIL"Enabled=INTEGER|-1Name=STRING|"Send Email"Params=FOLDER[Actions\Action5\Params]attachcount=STRING|"0"auth=STRING|"0"from=STRING|"blank@blank.com"host=STRING|"192.168.1.1"html=STRING|"0"msg0=STRING|"test message for webpage call up"msgcount=STRING|"1"password=STRING|"2591326226249432493925196"port=STRING|"25"subject=STRING|"web page call up"to=STRING|"blank@blank.com"[Actions\Action6]ActionID=STRING|"A_FLOW_ENDIF"Enabled=INTEGER|-1Name=STRING|"End If"[Actions\Action7]ActionID=STRING|"A_MISC_KILLAPP"Enabled=INTEGER|-1Name=STRING|"Terminate process ""C:\Program Files\Internet Explorer\iexplore.exe"""Params=FOLDER[Actions\Action7\Params]more=STRING|"2"process=STRING|"C:\Program Files\Internet Explorer\iexplore.exe"