RoboTask User's Guide
Keyword Index
Home page



IconQuick Start Guide
IconSeveral practical recommendations
IconMenus
IconActions
IconTriggering Events
IconAppendix
IconOther software

© 2004-2017 TaskAutomation.Software

Wait for Process Finish

Top  Previous  Next

 

Pauses the task and waits until the selected process (processes) is finished. After the monitored process is finished, the task is resumed. If the specified process is not in the memory at the moment when the action is due, the task is not paused.

This action is necessary to synchronize your task with an external application. For example, you may need to wait until the packing program finishes its work before you can copy the packed file to the Backup folder.

 

GeneralWaitProcessFinish

 

Process

You can either select the process from the list of processes that are currently running or type its name manually. You do not have to write the full path to the EXE file if it does not matter where this application was launched from.

 

If more than one matching process

If there are several running processes matching the specified one at the moment when the action is due, you can specify one of three modes

 

Wait for Oldest - wait until the process launched first from the matching group is finished;
Wait for Newest - wait until the process launched last from the matching group is finished;
Wait for All - wait until all matching processes are finished.

 

Waiting

This parameter defines the timeout in seconds to wait until the process is finished. You can also specify an infinite timeout.

If the timeout is over, but the process is not finished, the action will generate the following error: Timeout is over.

 

Assign Exit Code of Process to Variable

If you select waiting for one process (Wait for Oldest or Wait for Newest), you can assign its exit code to a user variable. A lot of console utilities (for example, packing software) can use this code to inform the application that initialed them about errors in their work.

 

note Related Topics

Run Program/Open Document

Run Command-Line Utility

Print Document

Send Network Message

Send Keystrokes

Shift Keys State

Log Off

Pause

SQL Query

Wait for Process Start

Comment

Terminate Process