Bill - the KiXtart manual has a typo - the format for your second call to dir() should look like this ...

code:

...
CASE (1)
$File = DIR ()
$x = $x+1
...

-Shawn