
Long Path Names and 16 Bit
If you are using a VB4-32 bit app under Win95, you can use the
GetShortFileName API to convert the long name to a short one.....
Dim r&, txt$
Dim shortPath As String * 256
file2change$ = "c:\Some Long Path\Some Long FIlename.doc"
r& = GetShortPathName(fPath$ & file2change$, shortPath$, Len(shortPath$))
If r& Then
DOSName = LCase$(Left$(shortPath$, r&))
Else: DOSName = "<DOS filename can not be determined>"
End If
If you're using VB4-16, this API is not available; you'll have to
parse the string yourself.