Long file names to short file name 
Author Message
 Long file names to short file name

Does anyone know how take a long filename in VB4 32-bit and get the
short file name for it.

Thanks in advance,

Ryan Groom



Wed, 23 Dec 1998 03:00:00 GMT  
 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



Wed, 23 Dec 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Get long file name from short file name

2. Long File Names and Short File Names

3. Converting Long File Names to Short File Names

4. long file names to short file name

5. How to convert long file names to short file names

6. Long File Names and Short File Names

7. Get Short File Name from Long File Name?

8. Getting short file name from long file name:

9. Api function to convert Long File Names To Short Dos File Names

10. Short File Name to Long File Name

11. Want to convert Dir in as long file name to short file name string? How?

12. Want to convert Dir in as long file name to short file name string? How?

 

 
Powered by phpBB® Forum Software