FilePath
Returns a String containing the full file path of the file that was opened. Read-only.
Syntax: object.FilePath
- object
- required An object expression that evaluates to a FileProperties object.
The value is the full path of the file that was passed to FilePropertyExplorer.OpenFile or selected through FilePropertyExplorer.BrowseAndOpenFile when the FileProperties collection was created.
Example
This example opens a file and prints its path and property count to the Debug console.
Dim fp As FileProperties
Set fp = FilePropertyExplorer.OpenFile("C:\Users\Public\sample.mp3")
Debug.Print "File: " & fp.FilePath
Debug.Print "Properties: " & fp.Count
See Also
- FileProperties class
- Count property
- Item property
- OpenFile method
- BrowseAndOpenFile method