GetFilePath

Public Function GetFilePath(ByVal FullFilePathAndName As String, Optional ByVal RemoveTrailingSlash As Boolean = False) As String

Returns the file path of the specified full path. Will always end on a forward slash, unless parameter RemoveTrailingSlash is passed as True.

SendDebug $"The file '{pFullFileAndPathName}' is located in folder '{GetFilePath(pFullFileAndPathName)}'"

See also: