Hi, I need exclude some files from an array of elements (files & path)

Ex: array
$files =
e:\dir3\lis.doc
c:\temp\file1.xls
c:\programfiles\prog1\file1.mdb
c:\windows\text.doc
d:\program2\dir3\text.jar

I use
Code:

$excl="text","file1"
For Each $Ex In $Excl
$Archivos=FilterArray($archivos,$Ex)
Next



but the filter not exclude, only work if I write the full path, exist some way to work without full path? only the filename?
_________________________
Look always 4 the best...