Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirListBox

Status
Not open for further replies.

Diogo

Technical User
Mar 22, 2001
143
PT
Hello, a little question that would help me very much.

Is it any way to the DirListBox return the path in format 8.3?

Thanks any way.

Diogo
 
Try this (you'll need to add Microsoft Scripting Runtime to project):

Dim LobjFolder As Folder
Dim LobjFSO As New FileSystemObject
Dim LstrShortPath As String

Set LobjFolder = LobjFSO.GetFolder(dirList.Path)

MsgBox ("ShortPath:" & LobjFolder.ShortPath)
MsgBox ("FullPath:" & LobjFolder.Path)

Set LobjFSO = Nothing
Set LobjFolder = Nothing

This should sort you out, let me know if it doesn't.
 
Thanks BeeBaw it´s just that what i want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top