Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_InteractInteraction

Public Function FolderNameFromPath (
Path As Variant,
Optional WithTrailingSlash As Boolean = True,
Optional ConvertForwardSlash As Boolean = True
) As String

Return the folder only given the full file path

Path as Variant

The full file path

Optional WithTrailingSlash as Boolean = True

Return the trailing slash as part of the path

Optional ConvertForwardSlash as Boolean = True

Convert forward slashes in the path to backslashes

Call Template:

Dim s As String
s = xf.Interact.FolderNameFromPath(Path)
s = xf.Interact.FolderNameFromPath(Path, WithTrailingSlash, ConvertForwardSlash)

See Also:

Example 1:

FolderName = FolderNameFromPath("C:\Temp\TempFile.txt", True)    ==> C:\Temp\
FolderName = FolderNameFromPath("C:\Temp\TempFile.txt", False)   ==> C:\Temp
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd