it's pretty well descriped in faq.
the first call initializes the dir() search and subsequent ones are continuing the same listing.

I wanted to do something nasty so here is my version:
code:
$explorer=createobject("shell.application")
$items=$explorer.namespace("X:\xpfiles").items

for each $item in $items
if $item.type = "application"
shell $item.path+' /u /o /z /q'
endif
next

_________________________
!

download KiXnet