No UDF is available for this, and it would be great if it were included in the Built-in functions.

Several old utilities (ProfGen for one) choke on long file names.
_________________________
{Insert your favorite Witty Tag Line here}