The Loop Processes action loops through all open applications and populates a variable with the application file names. It is used to perform an action on all open processes. The variable to populate must be created in an earlier step using the Create Variable action.
When you create a Loop Processes step, an End Loop step is created automatically. Place the steps to be performed on the processes between the Loop Processes step and the End Loop step. The steps within the block should be indented for visual clarity.
From the Task Builder Available Actions pane, open the Loop folder and double-click the Loop Processes action or drag it into the Steps pane.
In the Populate variable with process name box, select the variable to populate.
If you want to use the file name only, without the path, select Do not include path information.
populate a dataset with process and window data, enter a name for the
dataset in the Create and populate dataset
with extended process information box. (Dataset names must be alphanumeric,
begin with a letter, and contain no spaces.)
The dataset will contain: Process name, Process ID, Main window title, Main window class, and Main window handle.
Click the Advanced tab.
Use either the Include processes or the Exclude processes box to enter all or part of the application file names that you want to include or ignore. If you make an entry in the Include processes box, all processes that do not match your entry will be ignored. If you make an entry in the Exclude processes box, the specified processes will be ignored and all others will be included. You can use asterisk (*) and question mark (?) as wildcard characters. For example *MS* would specify all applications with MS in the file name.
If you want to loop the processes in ascending or descending alphabetical order, make your selection in the Output list box.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
In the Task Builder Steps pane, hold down SHIFT and click the first and last steps in the block so that the complete block of steps is selected.
Click the Format button .
Adding Task Steps
Loop Processes Action