Property: Path for Drive
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Properties > Property: Path for Drive
Property: Path for Drive
Specifies the path of a drive.
Object.Path
| Object | Drive Object with this property |
| Object.Path | String with read access |
The following example specifies the path of the root folder.
Function RootPath(sDrv) Dim fso, oMyDrive Set fso = CreateObject("Scripting.FileSystemObject") Set oMyDrive = fso.GetDrive(sDrv) RootPath = "Root: " & oMyDrive.Path End Function