Any directory UDF will suffice, just make sure you strip off the extension properly. Here is an example...

Code:

$files = "file.txt", "file.1.txt", "file.1.2.txt", "file1"

For Each $file in $files
Iif(Instr($file,"."),Left($file,InStrRev($file,".")-1),$file) ?
Next