ok, I made an example script in dirScan() udf which does pretty much similar.
udf is at: http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000303

check the example, all you need to add is a little if checking for correct type [Smile]

enjoy.

{edit}
maybe I should enchange my UDF a little as bryce's dirplus resolves with less lines...

[ 22. November 2002, 22:36: Message edited by: Lonkero ]
_________________________
!

download KiXnet