On Completion — Set Variable

Set a Windows environment variable after a task completes, conditioned on the task outcome.

Set Environmental Variable

Set on condition that
When to set the variable. Choose one of the four On Completion conditions: Always / All previous steps successful / Any previous step produced an error / No files were processed.
Variable name
The name of the Windows environment variable to set. Variable names must not contain spaces.
Variable value
The value to assign to the variable. Macro strings can be used to insert dynamic values (task name, date/time, file counts, etc.).

If the same variable is set by multiple On Completion steps in one task run, the value from the most recently executed step wins.

Miscellaneous

Display title
A custom name shown in the Task Scenario instead of the default title.
Enabled
When disabled, this step is ignored during task execution.