How To Get a Short Filename from a Long Filename (175512)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q175512 SUMMARY
Under certain circumstances, it may be necessary to get the Short Filename
equivalent of a file that has a Long Filename. The example below will allow
you to select a file that has a Long Filename and return it's Short
Filename using the GetShortPathName API Function call.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
154822
How To Get a Long Filename from a Short Filename
Modification Type: | Minor | Last Reviewed: | 3/11/2005 |
---|
Keywords: | kbdocfix kbhowto KB175512 |
---|
|