
Long file names to short file name
Quote:
>Does anyone know how take a long filename in VB4 32-bit and get the
>short file name for it.
Try using the GetShortPathName function:
Private Declare Function GetShortPathNameA Lib "kernel32" (ByVal
LongName As String, ByVal ShortName As String, ByVal bufsize As
Integer) As Long
--
VB Info: http://www.sn.no/~balchen/vb/visual.htm
FAQ: http://www.sn.no/~balchen/vb/faq.htm
Knowledge Base: http://www.sn.no/~balchen/vb/kb.htm