This is what i use:
Code:
on *:dialog:backg:*:*: {
  if ($devent == init) {
    did -a $dname 4 %mybg
    var %images = 1
    var %count = $findfile($mircdirsystem\images\backgrounds\,*.jpg,0,1,)
    while (%images <= %count) {
      did -a $dname 5 $nopath($mircdirsystem\images\backgrounds\ bla. $+ %images )
      inc %images
    }
  }
}

as you see i use $findfile in it, but cant make it identify the other images in the folder backgrounds, then rename them as i want..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }