EnumDir() is a UDF (read the manual or the FAQ on what UDFs are and how you use them)

but basically, get that UDF from the UDF forum and paste it into the end of your script.
_________________________
How to ask questions the smart way <-----------> Before you ask