Getting the 8.3 filename from a path in a string

hi there

can somebody help me out here?  i need a function which would return the 8.3
version of a path in a string variable.  can somebody help me?  the reason
why is that i'm writing a front-end which uses an external exe file, but
this exe file only recognises 8.3 file systems.

please help?

thanks a lot
glen verran