So this would be using wkix32.exe? I didn't think kix32.exe would handle multiples... Also, how would you retreive the computer name from the waitfor command? Do you have to write the output to a file then read the file like this:

code:
break on
:prog1
shell "%comspec% /c Waitfor prog1 > CPID.txt"
$ok = open (1,"CPID.txt")
$line = READLINE(1)
$ok = Close (1)
$computer = SUBSTR($line,23,LEN($line)-23)
shell "%comspec% /c Waitfor -s " + $computer
? "Spawning process for " + $computer
Run "wkix32.exe prog1schedtask.kix $cpname=" + $computer
Goto Prog1

Would this work? Is there a better way?

Brian

(finally. after editing it a few times, it seems to work.. but how reliable is something like this going to be?)

[ 07 May 2002, 16:27: Message edited by: BrianTX ]