Short File Name from Long File Name.


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.


Dale Brownbridge

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

Email :
Phone : +61 (0)3 9704 9946
Mobile: +61 (0)41 9878 136