Property: Path for File
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Properties > Property: Path for File
Property: Path for File
Specifies the path of a file.
Object.Path
| Object | File Object with this property |
| Object.Path | String with read access |
The following example specifies the path of a file:
Function FilePath(sFile) Dim fso, oMyFile Set fso = CreateObject("Scripting.FileSystemObject") Set oMyFile = fso.GetFile(sFile) FilePath = "Path: " & oMyFile.Path End Function