For parsing arrays, read about the "For Each" command.
code:
$Array = list,of,things

For Each $Element in $Array
? "Current element is " $Element
Next

Glenn

PS - the last paragraph in the tsControl UDF manual states:
"More complex tasks can be built.. For example, the tsGetEvent function can be used to read all event information into the arrays. A call to tsSetCredentials to define the password, followed by repeated calles to tsActivateEvent - all controlled by a For Each loop - could copy that event to all of the servers defined in an array, quickly replicating a tast from one test server to dozens of production servers!"

Jens' ScheduleTask UDF is ideal to push this kind of task out - sweet and direct. My tsControl library is well suited for applications that need to enumerate, read, modify, and copy tasks in addition to creating them. tsControl also allows multiple triggers per event, so you could schedule a task "at startup", "at logon", and "every 6 hours between 6am and 6pm"

[ 30. July 2003, 04:39: Message edited by: Glenn Barnas ]
_________________________
Actually I am a Rocket Scientist! \:D