How to remove backslash from the directory
Posted on January 4, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 'File/Folder Handling - How to remove backslash from the directory Option Explicit Public Function RemoveBackslash(ByVal sFolder As String) As String Dim I As Integer I = Len(sFolder) If I <> 0 Then If Right$(sFolder, 1) = "\" Then RemoveBackslash = Left$(sFolder, I - 1) Else RemoveBackslash = sFolder End If End If End Function |