ADSJob class

ConditionTarget property

    Arcana Scheduler Help

The ConditionTarget property specifies the process or file that execution of the job is dependent on (depending on the settings of the ConditionType and TriggerCondition properties).

Data Type

BSTR

Syntax

 

C++

job->get_ConditionTarget(BSTR *value)
job
->
put_ConditionTarget(BSTR value)

VB

job.ConditionTarget

Values

If the ConditionType is ADS_CONDITION_FILE, the ConditionTarget is the path and filename (or wildcard pattern) to check for. If the ConditionType is ADS_CONDITION_PROCESS, the ConditionTarget is the name of the process to check for.

Remarks

See the ConditionType topic for a general discussion on using conditional execution.

When specifying a process as the target, specify only the program name and extension (e.g., "notepad.exe"), not the full path to the executable.

Only 32-bit executables can be used as process targets. Batch files, 16-bit applications, scripts, etc., cannot be. For more information, see Arcana Development knowledge base article I02000016.

When specifying a file as the target, the user account under which the job is being run must have access to the specified file or directory. If it does not, the condition will always fail.