Lonk,

Make your UDF's non-cryptic, in this way you make it easyer to resuse them. As i said in my starting post: "Scripts/UDF's" should only be used as inspirations [Wink]

Les,

The scripts i posted was to prove that once the script is read/tokenized the execution time for $DirectoryName is the same as for $S

-Erik