ok basicly there should be a number of files names with
name001
name002
etc after them now i make a program to see how many there are or what the last one was.
gunznum {
set %filenum 002
set %keepgoing 1
while (keepgoing == 1 ) {
if ("W:\gcapture\gunz $+ %filenum == $null) {
set %returnv $calc(%keepgoing - 1)
return returnv
break
set %keepgoing 0
}
else {
inc filenum
}
}
}
now in remote
on *:TEXT:request*:?: {
if ($2 == gunz) {
notice $nick there are $gunznum of files available
}
}
all looks fine
now why do i get this back then?
notice - there are of files available