Hi,

I was trying to create a script that could multitask. I would like to perform some tasks using psexec but psexec executes every command for every pc one by one. So I started with the follwing testscript:

rem.kix
 Code:
 
break on

$x = 15

global $t

for $y = 0 TO $x STEP 1
? "y = $y"
$t = 0
while $t < 6 AND $y =< $x

call tst.kix
$t = $t + 1

? "t = $t"

loop

sleep 5

next


tst.kix
 Code:
 
break on

sleep 3

$t = $t - 1

exit


but since call executes and then returnes to the script, the counter doesn't work.

any idea's?

regards,

jeroen