If you want to ignore sub-directories, you can change
 Code:
  If $File <> '.' And $File <> '..'
to
 Code:
If Not GetFileAttr($File) & 16
This will prevent the loop from processing if the file is any directory, including "." or "..".

Glenn
_________________________
Actually I am a Rocket Scientist! \:D