Short File Name from Long File Name.

Hi,

I need to get my App. to convert long (win95) file&path names to short
filenames so that I can shell call an old 16b app.  Anyone have a
function which would 'mangle' the LFN's to SFN's?  
(eg. 'C:\Program Files'  --> 'C:\progra~1')

TIA for any help.

Regards,
        Dale.

Dale Brownbridge

Senior Software Developer
Image Software Pty Ltd (Melbourne, Australia)

Email : d...@isoftware.com
Phone : +61 (0)3 9704 9946
Mobile: +61 (0)41 9878 136