>>Look at my Windows Filenames program in the download section (under Win32 and other APIs). It'll return the file names (long and short), plus other information. You can pass it either the short or long name.
>>
>>hth,
>
>Works better than I'd hoped for, the long filename is returned without the path which is just what I needed.
Good. If you need the path, however, you have to parse it. For example, assume the path was C:\PROGRA~1\MICROS~2\. You'd first have to pass C:\PROGRA~1\MICROS~2 and you'd get back something like Microsoft Visual Studio, then C:\PROGRA~1 to get back Program Files.
>Did you realise though, that the DOS filename returns an extra character (displayed as a square - I guess it's the trailing 0 string terminator) - No problem though, I've modified my version.
No I didn't, but you're right it is CHR(0). Thanks for the heads up. I guess I'll have to fix this.:-)
>Thanks again,
>Paul
George
Ubi caritas et amor, deus ibi est