Try this;

code:
$n = 1
while $n < 156
select
case len("$n") = 1
$a = "apps00"
case len("$n") = 2
$a = "apps0"
case len("$n") = 3
$a = "apps"
endselect
$x = "$a" + "$n"
shell "%comspec% /c echo $x >> file.txt"
$n = 1 + $n
loop

or this;


code:
? "Enter a number less than 155: " gets $n
$n = val("$n")
while $n < 156
select
case len("$n") = 1
$a = "apps00"
case len("$n") = 2
$a = "apps0"
case len("$n") = 3
$a = "apps"
endselect
$x = "$a" + "$n"
shell "%comspec% /c echo $x >> file.txt"
$n = 1 + $n
loop
exit

------------------
BoxKite
FACTA NON VERBA

_________________________
Box
FACTA NON VERBA