The problem is in your code to start off with, you need to move the label (s) to before the increment. The code as you have it makes %y = 1, then checks to see if it >9 and then end!

code:
--------------------------------------------------------------------------------
alias ttst {
var %y 0
:s
inc -c %y 1
if (%y < 9) goto s
echo -a done!
}


However, this pause may also delay any other activity in the background. If you search the boards you will see some code that I posted that gives a delay of "n" seconds, which is similar in concept to what you have posted. There are some additional technical comments from others as to why that was or was not a good idea!

Cheers,
DK

(Please excuse typo's as English is my first language!)


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!