im usin the below code to get the path for the file that is draged over a listbox.
VB Code:
Public Function GetPath(ByVal sFile As String, Optional ByVal Slash = False) As String 'True shows "\" at the end 'False doesn't GetPath = IIf(Slash = False, Left$(sFile, InStrRev(sFile, "\") - 1), Left$(sFile, InStrRev(sFile, "\"))) End Function
so when i use it i get C:\WINDOWS\Desktop\
but i wana get the full path. i.e. C:\WINDOWS\Desktop\filename.txt
how could i do this?




Reply With Quote