Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 07:59 PM
Nick Nick is offline
Member
 
Join Date: May 2007
Posts: 37
Default Wait for Automation Anywhere task (.exe) to complete

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 08:00 PM. Reason: typo
Reply With Quote
  #2 (permalink)  
Old 06-13-2007, 10:30 PM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

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.
Reply With Quote
  #3 (permalink)  
Old 06-13-2007, 11:35 PM
Nick Nick is offline
Member
 
Join Date: May 2007
Posts: 37
Default

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.
Reply With Quote
  #4 (permalink)  
Old 06-14-2007, 12:37 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved