![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I have 2 'automation anywhere' tasks that I converted to .exe The main task has a step than uses the open/program command to launch the 2nd task to perform a SQL execute. However the main task doesn't wait for the 2nd task to finish. How can I tell the main task to wait for the 2nd task to complete? Last edited by Nick : 06-13-2007 at 07:00 PM. Reason: typo |
| |||
| Hello Nick, You can solve the problem by following approach Open Program/File Task2.exe Delay 500 ms Loop While <path of Task2.exe> Application is Running End Loop Other actions. This way, main task will wait till Task.exe is running. Hope that helps. |
| |||
| Thank you for your response... however The main task already has a SQL Loop (Nesting Loop-EndLoop is not supported.) at least that's the error message I keep getting. I think we need another action like wait for application to end or start. |
| |||
| Hello Nick, In that case you can do something as follows Open Notepad.exe (untitled - notepad) in Task.exe and Close Untitled - notepad when task.exe finishes Open Program File Task2.exe Delay 500 ms Wait For Window To Close ('Untitled - Notepad') Other actions. Alternatively Open Program/File Task2.exe If Application Is Not Running <path of Task2.exe> Wait up to (Upper Range) End If Other Actions Here, If/End If will work as Wait if you specify the Wait Time. It will wait up to the time you specified and if task2.exe finishes earlier then it continues further. This will get around the nested loop problem. |