im usin the below code to get the path for the file that is draged over a listbox.

VB Code:
  1. Public Function GetPath(ByVal sFile As String, Optional ByVal Slash = False) As String
  2.     'True shows "\" at the end
  3.     'False doesn't
  4.     GetPath = IIf(Slash = False, Left$(sFile, InStrRev(sFile, "\") - 1), Left$(sFile, InStrRev(sFile, "\")))
  5. 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?