u can use $nopath into your init
on *:dialog:log_search:*:*:{
if $devent == init {
var %x 0
while $findfile($logdir,*.log,%x) {
inc %x
did -a $dname 10 $nopath($findfile($logdir,*.log,%x))
}
did -c $dname 8
}
u can remove if ($did == 6) dialog -x $dname and add "OK" in the parameter of button
button "Close", 6, 290 180 45 12, ok
$did($dname,N).text can be $did(N)